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 don't;
* 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: [ Ссылка ]
Blog: [ Ссылка ]
LinkedIn: [ Ссылка ]
Facebook: [ Ссылка ]
My Desktop:
• Laptop: Macbook Pro 16' 2019
• Gaming Chair: [ Ссылка ]
• Mouse: [ Ссылка ]
• Desk: [ Ссылка ]
• Screen: [ Ссылка ]
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.
![](https://i.ytimg.com/vi/TggWLDAXmb4/mqdefault.jpg)