Authorization Roles with Spring Security | Spring Boot Backend #3.6
Ғылым және технология
In this video I will explain the difference between Authentication and Authorization. I will also explain how to implement the Authorization pattern with Spring Security. For that, I will use the @PreAuthorize annotation.
This is the sixth part of the third video of a playlist where I show how to create a Spring Boot Backend, how to create a website step by step: • Spring Boot
Content:
* Authentication vs Authorization
* Method Security with the annotation @EnableGlobalMethodSecurity. I will show the 3 different types to implement the method security with prePostEnabled, securedEnabled and jsr250Enabled
* Difference between @PreAuthorize and @PostAuthorize
* Some built-in methods for the method security
Repository: github.com/ser...
My NEW eBook: sergiolema.dev...
Blog: bit.ly/47ornJL
LinkedIn: bit.ly/41Nn61q
Facebook: bit.ly/47rc9nh
Boost your APIs with API Monitor: bit.ly/4d7C0ny
Icons:
* User by Meiselina Sundari from NounProject.com
* Servers by Romaldon from NounProject.com
* Id by Mr. Minuvi from NounProject.com
* Buildings by Alzam from NounProject.com
Пікірлер: 11
Contenido de calidad y muy bien explicado! Mil gracias.
@TheDevWorldbySergioLema
2 жыл бұрын
Gracias a ti por el comentario!
Informative 👍👍
@TheDevWorldbySergioLema
2 жыл бұрын
Thank you! That was the goal
Podrias hacer algun video del manejo de Excepciones en Spring Security ? Osea sobre Authentication Entry Point . No hay mucha info de eso, y la que esta es confusa. Gracias!
@TheDevWorldbySergioLema
2 жыл бұрын
He hecho uno hace tiempo. kzread.info/dash/bejne/ZJZ2k7l7cauoebw.html
@alxx736
2 жыл бұрын
@@TheDevWorldbySergioLema Genio!!
This video has good explanation, but with old arquitecture of Spring Security
@TheDevWorldbySergioLema
2 жыл бұрын
Thank! What do you mean with "old architecture"? I know I'm not with the latest version of Spring Boot, but the security is configured using the HttpSecurity object. Is there another way to do it?
@LucasArkantos
2 жыл бұрын
spring boot 2.7.0 do not use WebSecurityConfigureAdapter it is deprecated and will be removed in 3.0.0. Spring boot Security offer a lot JWT operation that is implemented on this repo. On new arquicture is recomend using Auth-Server, and another thinks you can check on Spring Boot Security about this Auth and Autorith 0.3.0.
@TheDevWorldbySergioLema
2 жыл бұрын
Thank you for the information, I will take a look