Duration 14:44

Spring Security Redirect User Based on Role Example

14 687 watched
0
188
Published 2 May 2021

Learn how to write code for redirecting users based on their roles with Spring Security in a Spring Boot web application, upon successful login. In other words, showing different page for users with different roles upon successful authentication. For example, if the user has role editor, then redirect him to Editor Dashboard page right after he logged in successfully. Similarly, salesperson users will see Sales Dashboard, admin users will see Admin Dashboard, and so on. Technologies: - Spring Boot Web - Spring Data JPA & Hibernate - Spring Security - MySQL Database Copy the code snippets in the written article at https://www.codejava.net/frameworks/spring-boot/redirect-users-after-login-based-on-roles

Category

Show more

Comments - 41