In this Grails 4 tutorial, we will show you how to build a secure Grails 4 application using Spring Security Core Plugin. We will add the login and register function to the Grails 4 application. The purpose of using the Spring Security plugin has simplified the integration of Spring Security Java (we have written this tutorial). The usage of this Grails 4 Spring Security plugin similar to Grails 2 or 3, but there's a lot of updates on the Spring Security code and its dependencies to match the compatibilities.
This tutorial divided into several steps:
Step #1: Create a Grails 4 Application.
Step #2: Install Grails Spring Security Core Plugin.
Step #3: Create User, Role, and Product Domain Class.
Step #4: Create CustomUserDetailsService.
Step #5: Override Login Auth View.
Step #6: Add User Info and Logout to the Navbar.
Step #7: Create Register Controller and View.
Step #8: Create the Secure Product CRUD Scaffolding.
Full article here:
https://www.djamware.com/post/5db9a359fe53660ee3228772/grails-4-tutorial-spring-security-core-login-example
Full source code here:
https://github.com/didinj/grails4-spring-security-login-example.git
More on Groovy and Grails:
https://www.djamware.com/post-sub-category/585b3fa380aca73b19a2efd4/groovy-and-grails
If you find this video is useful and give you good information, please subscribe to this link /channel/UCtI81hYLh2Ae_45KHkyy0vw
#grails #login #source_code #springsecurity #grails4 #springsecuritylogin #authentication #webapp