The OAuth 2.0 and OpenID Connect Specification defines several Grant Types and other Grant Types have or may be defined. We show the Authorization Code Grant for OpenID Connect in most of our examples.
Requests using these parameters are represented as JWTs, which are respectively passed by-valueor passed by-reference. The ability to pass requests by-reference is particularly useful for large requests. If one of these parameters is used, the other MUST NOT be used in the same request.
Typically, the folowing are required:
For example, the OAuth Client directs the user-agent to make the following HTTP request using TLS:
https://server.example.com/authorize? response_type=code &client_id=s6BhdRkqt3 &redirect_uri=https%3A%2F%2Fclient.example.org%2Fcb &scope=openid%20profile &state=af0ifjsldkj
The Authorization Server validates the Authorization Request to ensure that all required parameters are present and valid. If the Authorization Request is valid, the Authorization Server authenticates the Resource Owner and obtains an authorization decision (by asking the Resource Owner or by establishing approval via other means).
If a successful decision is established, the Authorization Server directs the user-agent to the OAuth Client provided Redirect_uri using an HTTP Redirection response, or by other means available to it via the user-agent providing the Authorization Grant to the OAuth Client