Authorization Challenge

The Authorization Challenge Endpoint performs Authentication of the End-User by native application to obtain an authorization code.

Changed on

The Authorization Challenge Endpoint performs Authentication of the End-User by native application to obtain an authorization code.

post/restv1/authorize-challenge

Request

  • Base URL
    https://jans.local.io/jans-auth
  • Auth
    none declared

Request body application/x-www-form-urlencoded

client_idstring required

OAuth 2.0 Client Identifier valid at the Authorization Server.

scopestring

OpenID Connect requests MUST contain the openid scope value. If the openid scope value is not present, the behavior is entirely unspecified. Other scope values MAY be present.

auth_sessionstring

If the client has previously obtained a auth session

use_auth_sessionboolean

If return back in response auth_session. By default AS does not return auth_session

statestring

Opaque value used to maintain state between the request and the callback.

noncestring

String value used to associate a Client session with an ID Token, and to mitigate replay attacks.

login_hintstring

Hint to the Authorization Server about the login identifier the End-User might use to log in (if necessary).

acr_valuesstring

Requested Authentication Context Class Reference values. Space-separated string that specifies the acr values that the Authorization Server is being requested to use for processing this Authentication Request, with the values appearing in order of preference.

amr_valuesstring

AMR Values.

request_session_idstring

Request session id.

session_idstring

Session id of this call.

origin_headersstring

Origin headers. Used in custom workflows.

custom_response_headersstring

Custom Response Headers.

logout_status_jwtstring

Possible values are true or false. Returns back Logout Status JWT if send logout_status_jwt=true and authorization is successful.

Response

OK

authorization_codestring required

Authorization Code

logout_status_jwtstring

Logout Status JWT

Example response

{
  "authorization_code": "uY29tL2F1dGhlbnRpY",
  "logout_status_jwt": "eyJraWQiOiJjb25uZWN0XzA3ZjQ3ZmRkLTg0NTYtNDMzOC1iYTRmLWNhNmU0NDBmYjljOV9zaWdfcnMyNTYiLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9"
}

Changes