Skill 5.6.3
Web and federated authentication protocols (SAML, OAuth, OpenID Connect)
Key Concepts
SAML 2.0 exchanges XML assertions between an identity provider and a service provider, common for enterprise SSO to web applications. OAuth 2.0 is an authorisation framework that lets a user grant an application limited access to resources through access tokens, without sharing passwords. OpenID Connect adds an authentication layer on top of OAuth, returning an ID token (a JSON Web Token) that identifies the user.
Security depends on validating token signatures, audiences and expiry, using the authorisation code flow with PKCE for public clients, protecting redirect URIs and keeping tokens short-lived.