Completes a request for authorization of a Connected App.
state, nonce, and code_challenge.
If the authorization was successful, the redirect_uri will contain a valid authorization_code embedded as a query parameter. If the authorization was unsuccessful, the redirect_uri will contain an OAuth2.1 error_code. In both cases, redirect the user to the location for the response to be consumed by the Connected App.
Exactly one of the following must be provided to identify the user granting authorization:
user_idsession_tokensession_jwtsession_token or session_jwt is passed, the OAuth Authorization will be linked to the user’s session for tracking purposes. One of these fields must be used if the Connected App intends to complete the Exchange Access Token flow.Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Request type
Indicates whether the user granted the requested scopes.
An array of scopes requested by the client.
The ID of the Connected App client.
The callback URI used to redirect the user after authentication. This is the same URI provided at the start of the OAuth flow. This field is required when using the authorization_code grant.
The OAuth 2.0 response type. For authorization code flows this value is code.
The unique ID of a specific User. You may use an external_id here if one is set for the user.
The session_token associated with a User's existing Session.
The session_jwt associated with a User's existing Session.
Space separated list that specifies how the Authorization Server should prompt the user for reauthentication and consent. Only consent is supported today.
An opaque value used to maintain state between the request and callback.
A string used to associate a client session with an ID token to mitigate replay attacks.
A base64url encoded challenge derived from the code verifier for PKCE flows.
Successful response
Globally unique UUID that is returned with every API call. This value is important to log for debugging purposes; we may ask for this value to help identify a specific API call when helping you debug an issue.
The callback URI used to redirect the user after authentication. This is the same URI provided at the start of the OAuth flow. This field is required when using the authorization_code grant.
A one-time use code that can be exchanged for tokens.