OAuth and OIDC
OAuth and OIDC are two critical, related protocols for managing secure access in modern applications. OAuth 2.0 is an **authorization** framework that enables a third-party application to obtain limited, delegated access to a user's resources on another service without sharing the user's password; for instance, allowing a photo-printing service to access your Google Photos. It accomplishes this by issuing access tokens. OpenID Connect (OIDC) is a simple identity layer built on top of OAuth 2.0 that provides **authentication**. It allows an application to verify a user's identity based on authentication performed by a trusted provider (like "Sign in with Google"), returning an ID token that contains user profile information. In short, OAuth is about what a user can *do* (permissions), while OIDC is about who a user *is* (identity).