OAuth2 authentication and authorization endpoints
Authorize Consent
Processes the user's consent decision for an authorization request. This endpoint is typically called after the user has logged in and granted access to the requested scopes. The response will redirect the user back to the client application with the appropriate authorization code or error.
Request Body
client_idstring · requiredThe client ID of the application requesting authorization.
redirect_uristring · uri · requiredThe URI to redirect the user to after consent.
scopestring · requiredRequested scopes.
statestring · requiredAn opaque value used by the client to maintain state.
response_typestringExpected response type (e.g. "code").
Responses
Authenticate
Exchanges an authorization grant (e.g., authorization code, client credentials, refresh token) for an access token.
Request Body
grant_typestring · enum · requiredThe grant type. Determines the set of other required parameters. Supported values include:
authorization_code: For exchanging an authorization code for an access token.refresh_token: For obtaining a new access token using a refresh token.client_credentials: For client authentication directly (if supported by the server).
Enum values:authorization_coderefresh_tokenclient_credentials
client_idstringYour application's client ID. Required for
authorization_codeandclient_credentialsgrants. May be required forrefresh_tokengrant if the server enforces client authentication for refresh tokens.client_secretstringYour application's client secret. Required for
authorization_codeandclient_credentialsgrants if the client is confidential. May be required forrefresh_tokengrant if the server enforces client authentication for refresh tokens with confidential clients.codestringThe authorization code received from the authorization server. Required if
grant_typeisauthorization_code.redirect_uristring · uriThe redirect URI that was used in the initial authorization request to obtain the
code. Required ifgrant_typeisauthorization_code. Must match the URI used in the authorization request.refresh_tokenstringThe refresh token issued to the client. Required if
grant_typeisrefresh_token.scopestringOptional. The requested scope(s) for the access token. Space-separated list of scope values. The requested scope must not include any scope not originally granted by the resource owner. Primarily used with
client_credentialsgrant but can sometimes be used with other grants.
Responses
access_tokenstringThe access token string.
token_typestringType of the token issued (e.g., "Bearer").
expires_inintegerThe lifetime in seconds of the access token.
refresh_tokenstringThe refresh token, which can be used to obtain new access tokens. (Optional)
scopestringThe scope of the access token. (Optional)