Загрузка...

Google Sign-on and OAuth2 Spring Security Integration with JWTs

🌐 Google Sign-on and OAuth2 Spring Security Integration with JWTs 🚀

In (by far) the most exciting video yet, we ditch the HTTP Basic authentication for OAuth2 and JSON Web Tokens (JWTs). In this far more realistic use case, we use Google's Sign-In button to get a valid JWT from Google's authorization server that we pass to our Spring Boot 3 APIs to create and manage users with our protected endpoints.

🔐 What You'll Learn in This Tutorial:

How to configure and implement OAuth2 authentication with Spring Security in our Spring Boot 3 application. We protect our APIs, enable Cross-Origin Resource Sharing (CORS) for localhost, and wire up Google JWTs as our source of authentication.

We create a new Authorization Bearer HTTP Interceptor in our Angular 17 codebase and add the Google Sign-on button component to our Authentication Dashboard. We sign-in with Google and use the generated JWT to create or re-enable a user on the back-end and provide authentication for our user management APIs.

🚀 Why Watch? Haven't you ever wondered how users are create and managed? How modern web authentication works? This is a practical guide to how you'd begin implementing the most fundamental piece of any web application.

🔗 Spring Security Source Code in Practice: https://github.com/pjl-software/full-stack-auth-repo
- git checkout 09-spring-security-configuration-c

Don't forget to 'Subscribe' to continue the journey!

Chapters

0:00 - Killer demo that you should watch!
2:06 - Video Objectives
2:34 - OAuth2 and JWT Authentication
3:07 - SecurityFilterChain configuration
5:49 - WebMvcConfig CORS configuration
6:36 - Implement Angular's Google Sign-on Component
12:18 - Creating users with the JWT
17:25 - Access the Protected APIs
18:22 - Reviewing Code in GitHub

---------------
#SpringBoot #SpringSecurity #oauth2 #ProgrammingTutorial #WebDevelopment #CurlHeaders #angular #coding

Видео Google Sign-on and OAuth2 Spring Security Integration with JWTs канала PJL Software
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять