oauth 2.0 sequence diagram with RFC embeds
Hey regular readers – ignore this post, it’s a sample from the rfckit repo.
Clicking things will either load docs at the bottom, or will take you to the RFC at ietf.org.
oauth 2.0 authorization code grant ?
Docs
oauth 2.0 authorization code grant
source Section 4.1The authorization code grant type is used to obtain both access tokens and refresh tokens and is optimized for confidential clients. Since this is a redirection-based flow, the client must be capable of interacting with the resource owner's user-agent (typically a web browser) and capable of receiving incoming requests (via redirection) from the authorization server.
Role: resource-owner
Aliases: browser, user-agent, resource-owner
source Section 1.1An entity capable of granting access to a protected resource. When the resource owner is a person, it is referred to as an end-user.
Role: client
sourceAn application making protected resource requests on behalf of the resource owner and with its authorization. The term "client" does not imply any particular implementation characteristics (e.g., whether the application executes on a server, a desktop, or other devices).
Payload: client-identifier
sourceThe authorization server issues the registered client a client identifier -- a unique string representing the registration information provided by the client.
Payload: requested-scope
sourceThe authorization and token endpoints allow the client to specify the scope of the access request using the "scope" request parameter. In turn, the authorization server uses the "scope" response parameter to inform the client of the scope of the access token issued. ... The authorization server MAY fully or partially ignore the scope requested by the client.
Payload: redirection-uri
sourceAfter completing its interaction with the resource owner, the authorization server directs the resource owner's user-agent back to the client. The authorization server redirects the user-agent to the client's redirection endpoint previously established with the authorization server during the client registration process or when making the authorization request.
Payload: local-state
sourceAn opaque value used by the client to maintain state between the request and callback. The authorization server includes this value when redirecting the user-agent back to the client.
Payload: client-identifier
sourceThe authorization server issues the registered client a client identifier -- a unique string representing the registration information provided by the client.
Payload: requested-scope
sourceThe authorization and token endpoints allow the client to specify the scope of the access request using the "scope" request parameter. In turn, the authorization server uses the "scope" response parameter to inform the client of the scope of the access token issued. ... The authorization server MAY fully or partially ignore the scope requested by the client.
Payload: redirection-uri
sourceAfter completing its interaction with the resource owner, the authorization server directs the resource owner's user-agent back to the client. The authorization server redirects the user-agent to the client's redirection endpoint previously established with the authorization server during the client registration process or when making the authorization request.
Payload: local-state
sourceAn opaque value used by the client to maintain state between the request and callback. The authorization server includes this value when redirecting the user-agent back to the client.
Payload: local-state
sourceAn opaque value used by the client to maintain state between the request and callback. The authorization server includes this value when redirecting the user-agent back to the client.
Payload: local-state
sourceAn opaque value used by the client to maintain state between the request and callback. The authorization server includes this value when redirecting the user-agent back to the client.
Payload: redirection-uri
sourceAfter completing its interaction with the resource owner, the authorization server directs the resource owner's user-agent back to the client. The authorization server redirects the user-agent to the client's redirection endpoint previously established with the authorization server during the client registration process or when making the authorization request.