Use Jwt and the Roles to Secure Your Fullstack ReactJS and Spring Boot / Spring Security

preview_player
Показать описание
In this video, I show how to configure a Spring Boot / Spring Security backend with JWT and the roles. I also show how to store the roles information in the JWT to allow the ReactJS frontend to render a different page depending on the roles. I explain how to use the PreAuthorize annotation in the controllers with the available SPeL expressions.

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

Great content as always Sergio! Merci encore

arnaudpoutieu
Автор

Bro you are the best, I was search a solution with spring security and I can't find somethinh, but in your git, i can find somithing ez. Thank you and sorry for I have some error in gramatical

juansebastiancadavidperalt
Автор

Awesome Explanation and one of the Best.💯💯 please Create a video with using Angular as Fronted.💯

AnkitTiwari-qtds
Автор

One question. Let's say you have separate frontend and backend. In React endpoints are exposed if you inspect Network in the browser. I wanna protect endpoints from being accessed directly, only from the app. If the endpoint is on api, domain, com and frontend on domain, com These endpoints will return some data that doesn't require auth, but I don't want someone scraping the data directly from the endpoint. Any ideas or suggestions?

AndrulisTravel
Автор

I am new to Spring Boot, can you show how to do oauth and credentials together? Great video btw

AnhVu-Tryingtobebetter
Автор

Can u do one for angular? Like using azure oauth

udhayasankar