Skip to main content

Authorization Code Request

Procure Authorization Code from the provider for authorization.

Resource Informations

NameValueDescription
Requires authentication?NoBasic authentication is not required. A clientID must be given as a request parameter.
Rate limited?NoRate 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.

KOBIL Authorization Code

Request body (Required)

Parameter NameTypeDescription
Authorize URI(Required)ListThe authorize URI on the authorization server is where an OpenID Connect flow starts.
Redirect URL (Required)StringProvide the URL where the user needs to be redirected on execution.
client_id (Required)StringThe Client ID for which the access token is to be generated.
scopeStringThe scope requested for the token.
NonceStringAutogenerated UUID.
Response Type (Required)StringSelect the type of response that has to be received on execution.
Response Mode (Required)StringSelect 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"
}

Response

KOBIL Authorization Code