RFCs
OAuth 2.0 Flow
|
|
- Client: Sends authorization request to Resource Owner (likely a user).
- Example: A third-party application asks a user for permission to access their Google Drive files.
- Resource Owner: If providing authorization, returns an authorization grant to the
Client.
- Example: A user grants the third-party application access to Google Drive.
- Client: Sends the authorization grant to the Authorization Server for validation.
- Example: The third-party app presents its permission grant to Google’s OAuth 2.0 server.
- Authorization Server: After successful grant validation, returns an access token to the
Client.
- Example: Google’s OAuth 2.0 server verifies the grant and returns an access token.
- Client: Uses the access token to request data from the Resource Server.
- Example: The third-party application uses the token to access specified Google Drive files.
OIDC Flow
|
|
- Relying Party: Requests an ID token from the OpenID Provider for user authentication.
- Example: A web app requests user authentication from Okta.
- OpenID Provider: Validates the Relying Party’s request, then returns an ID token
(containing user info).
- Example: Okta validates the web app’s request, authenticates the user, and returns an ID token with user information.
- Relying Party: Optionally uses the access token (if issued) to access a Resource
Server.
- Example: The web app uses the access token issued by Okta to request data from an API belonging to the application.
Resources
- 2024-03-28 ◦ Simplify workforce identity management using IAM Identity Center and trusted token issuers | AWS Security Blog
- 2024-03-28 ◦ OAuth 2.0 and OpenID Connect overview | Okta Developer OAuth 2.0 vs. OIDC
- 2023-10-12 ◦ Sessions, Tokens, JWT, SSO, and OAuth in One Diagram
- 2023-07-05 ◦ OAuth 2 Explained In Simple Terms - YouTube
- 2023-04-06 ◦ How Authentication and Authorization Work for SPAs | Okta Developer
- nice pictures with dinosaurs
- 2023-01-02 ◦ The complete guide to protecting your APIs with OAuth2 (part 1) - Stack Overflow Blog