Subscribe:
/ @ankit.wasankar
Spring boot video playlist:
• Spring Boot - Beginner to Expert Course
#java #springboot #LoginRedirect #authentication
Video 05: Custom Login Success Handler - Role Dependent Redirect - Spring Boot
This tutorial will demonstrate -
1. How to redirect users to different locations, after successful login depending upon user role.
2. How to override success handler in Spring Security.
3. How to add page, which is only accessible to the user with specific role. Like /admin should be accessible to only admin user.
-------------------------------------------------------------------------------------
Important links:
Tutorial link:
https://tutorials.webencyclop.com/spr...
Playlist link:
• Spring Boot - Beginner to Expert Course
-------------------------------------------------------------------------------------
1. Create Home Pages for Admin & Normal User
2. Define Custom Success Handler - by extending simpleUrlAuthenticationSuccessHandler
3. Define access security to /admin page.
4. Add success handler in Spring Configuration