Spring Security Redirect User Based on Role Example

preview_player
Показать описание
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

Рекомендации по теме
Комментарии
Автор

Nice tut bro Nam, I've done this before but you showed me a better way.

ktn
Автор

Yhank yo very much, excellent tutorial. I hope to see a tutorial about all kınd of jpa mappings in one app. I have trouble by persisting of onetoöany selationsships.
Thank you again for allyour work.

Cavdar
Автор

Your videos are really helpful... Can you please make a video on one to one chat application in spring boot.. It will be great help

taniarajput
Автор

What's use of util package in application and what type of classes we can write under util package

shubhamswaraj
Автор

thanks for your video, it is really helpful, I have a question " I want to redirect to the current page after login successfully but still keep the configuration as you guided is how should I do"please help me

phihonguyen
Автор

Do u have this login system together with your other shopping cart project? if so could you share the source code for it, im really trying to learn

mustafa
Автор

Sir, I want to store data in JSON format like, {"product":"apple", "product Price":"$122", "status":"good"} .. I want t o store like this in database

maheshbabunadigoti
Автор

Nice code sir ...but I Have one doubt I have some roles like (Vendor, Admin, user) when login with Specific role respective screen should I have display? How to hardcode sir ?

chandanasamanthapudi
Автор

Can u make a tutorial how to upload image file to database as blob and view it in tag img

renlucifer
Автор

Hi Sir, Can you please share with complete code branch

ashokd
Автор

would you please share entire project zip

santhoshvaraprasaduppuluri
Автор

Cám ơn anh. Cho em hỏi có bài nào tiếng Việt không anh?

sangtv_AK
Автор

You could credit Java Guide because that is his project, you just modified it...

nikolak
Автор

Are you Vietnamese, sir? I hear a very familiar accent lmao

tunghoangtho