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: https://www.youtube.com/playlist?list=PLab_if3UBk9-TuyqwMy3JvNHeCh7Ll9Wz
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: https://github.com/serlesen/backend-social-network/tree/chapter_3_2
My NEW eBook: https://sergiolema.dev/git-book/
My Spring Boot Academy: https://sergiolema.dev/the-spring-boot-academy/
Facebook: https://www.facebook.com/thedevworldsergiolema
Twitter: https://twitter.com/thedevworld_sl
Buy Me a Coffee: https://www.buymeacoffee.com/serlesen
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.
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Cookie based authentication with Spring Security | Spring Boot Backend #3.2», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.