In this video, I show how to protect a Spring Boot and React application using AWS Cognito. I use Spring Security 6 to connect to AWS Cognito using the OAuth2 protocol. And behind AWS Cognito, I use Google to connect my users with a social sign in.
This video belongs to a playlist where I show how to implement an Authorization Server with Spring Security: https://www.youtube.com/playlist?list=PLab_if3UBk9-AArufc8CryyhSDVqkNT-U
Github repository of the project: https://github.com/serlesen/fullstack-oauth2/tree/chapter_2
Chapters:
00:00:00 Introduction
00:02:25 Google Configuration
00:04:25 Frontend Creation
00:08:10 Frontend Routes
00:22:53 React Store
00:27:16 Backend Creation
00:28:08 Backend Endpoints
00:30:14 Spring Security
00:34:43 Authentication Endpoints
00:43:23 Cognito Configuration
00:48:02 Test All Together
00:49:12 Recap
My NEW eBook: https://sergiolema.dev/git-book/
Blog: https://bit.ly/47ornJL
LinkedIn: https://bit.ly/41Nn61q