Interview Prep/DevSecOps/Secrets Management and Identity

What is the difference between authentication and authorisation, and where do OAuth2 and OIDC fit?

BeginnerConceptSecrets Management and Identity
Answer

Authentication proves who you are; authorisation decides what you can do. OAuth 2.0 is an authorisation delegation framework that issues access tokens for APIs. OpenID Connect is a thin identity layer on OAuth 2.0 that adds an ID token (a JWT with claims about the user) for authentication.

For service-to-service use the client credentials flow; for web apps, authorisation code flow with PKCE.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Secrets Management and Identity