OAuth 2, JWT, OIDC: What Spring Didn't Tell Us
summary
Explains OAuth 2, JWT, and OpenID Connect in the context of Spring, addressing common implementation questions and subtle security nuances that developers often search for. Uses concrete Spring examples to clarify behavior, pitfalls, and recommended practices for handling tokens and authentication flows.
AI-written summary · about
chapters (19)
- 0:00Introduction
- 1:25When OAuth 2 is needed
- 3:53OAuth 2 core concepts
- 6:21Spring Security OAuth 2 demo
- 9:08Public vs private clients
- 11:18OAuth 2 vs OpenID Connect
- 15:11OAuth 2 auth risks
- 19:07Confused deputy attacks
- 20:10Social login and SSO
- 23:21Storing users in DB
- 24:23JWT tokens without OAuth 2
- 27:12JWT token problems
- 31:24Secure cookie config
- 33:30JWT token best practices
- 36:15Sessions vs JWT tokens
- 41:07Mobile clients security
- 41:28Practical OAuth 2 use cases
- 42:31Security literature
- 43:14Q&A
