OpenID Connect & OAuth 2.0 – Security Best Practices
summary
Overview of concrete fixes and attacks: RFCs and BCPs converge into OAuth 2.1 with implicit and password grants deprecated and PKCE mandatory for code flow; recommends asymmetric client auth (private_key_jwt), JWT hardening, refresh-token rotation or sender-constraining, and avoiding tokens in URLs. Walks through real incidents (an EA subdomain takeover example and referrer leakage to Facebook/GitHub), shows a BFF (Backend For Frontend) recommendation, and points to ASP.NET Core and browser features as practical mitigations.
AI-written summary · about
chapters (34)
- 0:00Intro
- 1:05High Security OAuth
- 5:36Some Context...
- 11:51Relevant Documents
- 12:16The Big Picture
- 12:55Simplified
- 13:57Attack Model (3)
- 19:02Implicit Flow Request
- 19:29Implicit Flow Response
- 20:39No more Password Grant
- 21:42Original Flows
- 22:31Grand Unification
- 22:58Machine to Machine
- 25:32Client Authentication
- 27:42Bearer Tokens
- 29:30Interactive Applications
- 31:03Redirect URI Validation Attacks
- 35:26Credential Leakage via Referrer Heade
- 36:44Authorization Code Injection
- 38:07Mitigation: Proof key for Code Exchan
- 39:38Cross Site Request Forgery
- 41:15Countermeasures Summary
- 41:45MixUp Attack (Variant 1)
- 46:00Mix Up Countermeasures
- 47:47Public Clients
- 48:23Anti Pattern: Native Login Dialogs
- 49:20Using a browser with Code Flow + PKG
- 49:56Different Approaches
- 51:24Token Storage & Management
- 52:06Browser-based Applications aka SPA
- 54:47Same-Site Architecture
- 55:22Anti-Forgery Protection
- 56:19Access Token Storage in Browsers
- 58:25OAuth 2.1
related talks
53mOpenID Connect & OAuth 2.0 – Security Best Practices
59mOpenID Connect & OAuth 2.0 – Security Best Practices
01h 05mCommon mistakes and misconceptions in Web App Security using OAuth 2.0 and OpenId Connect
01h 02mBuilding Clients for OpenID Connect/OAuth 2-based Systems
01h 00mOAuth – the good Parts
29mFireside Chat About OAuth 2.0
01h 00mImplementing OpenID Connect and OAuth 2.0 – Tips from the Trenches
47mHacking OAuth
