Cookie based authentication with Spring Security Spring Boot Backend 3.2


In this video I will show the cookie based authentication with Spring Security.
I will authenticate a stateless application with the cookies.
And I will show the differences with the JWT authentication. This is the second part of the third video of a playlist where I show how to create a Spring Boot Backend how to create a website: Content of the video: the HTTP filters.
One will be dedicated to the regular authentication with the username and password and the other will be dedicated to the cookie based authentication the configuration of Spring Security.
I will show how to add multiple HTTP filters the exception handling with an Entry Point the session management in a STATELESS mode and the path which need authentication and the one which dont the creation of a token to be used in the cookie.
The injection in the SecurityContext of the Authentication Bean for the usage in the controllers of the annotation AuthenticationPrincipal. Repository: My NEW eBook: My Spring Boot Academy: Facebook: Twitter: Buy Me a Coffee: Icons: Browser by Nawicon from the Noun Project file document by Phumpsky from the Noun Project Lock by tezar tantular from the Noun Project Share by Sujono sujono from the Noun Project User by Shmidt Sergey from the Noun Project.

Источник: rutube.ru

Сообщение от Commenton: Необходимо стартовать сессию