Authorization Code Request
Procure Authorization Code from the provider for authorization.
Resource Informations
Name | Value | Description |
---|---|---|
Requires authentication? | No | Basic authentication is not required. A clientID must be given as a request parameter. |
Rate limited? | No | Rate limited indicate how many requests a client can make in a time period |
HTTP request
POST https://{tenantId}.{hostname}/auth/realms/{tenantId}/protocol/openid-connect/auth
note
Code requests must be made over https. Calls made over plain http will fail.
Request body (*Required)
Parameter Name | Type | Description |
---|---|---|
Authorize URI* | List | The authorize URI on the authorization server is where an OpenID Connect flow starts. |
Redirect URL* | String | Provide the URL where the user needs to be redirected on execution. |
client_id* | String | The Client ID for which the access token is to be generated. |
scope | String | The scope requested for the token. |
Nonce | String | Autogenerated UUID. |
Response Type* | String | Select the type of response that has to be received on execution. |
Response Mode* | String | Select the type how the Authorization Server should return the result parameters from the Authorization Endpoint. |
Sample Request
{
"authorize_uri": "https://{tenantId}.{hostname}/auth/realms/{tenantId}/protocol/openid-connect/auth",
"redirect_uri": "https%3A%2F%2dtest.com",
"client_id": "testcli",
"scope": "opeind"
}