المدة الزمنية 14:44

Spring Security Redirect User Based on Role Example

بواسطة Code Java
14 694 مشاهدة
0
188
تم نشره في 2021/05/02

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

الفئة

عرض المزيد

تعليقات - 41