Skip to content

Authorization Endpoint Parameters

Request parameters

ParameterRequiredDescription
acr_valuesNoSpace seperated string with special requests from the client. See below.
client_idYesThe unique id of the requesting client.
code_challangeNo, but required for client configured for PKCE.The code challange for PKCE.
code_challenge_methodNo, but required when code_challange is used.“S256” indicates the challenge is hashed with SHA256 (recommended). “plain” indicates that the challenge is using plain text (not recommended).
login_hintNoHint of the username. Could be used if the client asks for username before redirecting.
login_hint_tokenNoA non-standardized parameters to enable some extra single-sign-on scenarios. Previously this parameter was sso_token and it is still supported.
max_ageNoSpecifies how much time (in seconds) that is allowed to been passed since user singed in. See Force re-authentication of user.
nonceNo, but required when response type is id_tokenA random string value used to mitigate replay attacks by associating the client session with the ID token.
promptNo“none”, “login”, “consent”, “select_account” or “create”. Indicates how the client wants that Authway handles the request.
redirect_uriYesThe callback URL the client wants to re-direct to. Must be pre-registered.
requestNoInstead of providing all parameters as individual query string parameters, it is possible to provide a subset or all them as a JWT.
request_uriNoURL of a pre-packaged JWT containing request parameters.
response_modeNo“query”, “fragment” or “form_post”. Indicates how the response should be returned.
response_typeYesDefines which flow to use (code, id_token, token, or a combination).
scopeYesA space separated string of scopes that the client wants access to.
stateRecommendedA random value that will be passed back to the client. Can be used to keep track of a session or to prevent unsolicited flows.
ui_localesNoEnd-User’s preferred languages, represented as a space-separated list of language tag values, ordered by preference. For instance, the value “sv-SE en” represents a preference for Swedish as spoken in Sweden, then English (without a region designation).

Note request and request_rui can’t be used to together.

acr_values parameters

The acr_values parameters are passed as “parameter:value” and if multiple parameters are passed they should be seperated with a space. For example:

tenant:priv idp:bankid
ParameterDescription
idpThe unique identifier of the sign-in method to use. See Control authentication method from the client.
tenantThe unique identifier of an owner (tenant) that the user must belong to. See Only allow users from specific tenant
impersonateTrigger the flow to impersonate another user. See Impersonate a user.
mfaRequire the user to be authenticated with MFA. See Require MFA.

Parameters for specific authentication methods

Swedish BankId

ParameterRequiredDescription
bankid_user_visible_dataNoText displayed to the user during the authentication. Passed on to BankId without modification.
bankid_user_visible_data_formatNoThe format of the text in bankid_user_visible_data parameter and can be plaintext (default) or simpleMarkdownV1. Passed on to BankId without modification.
bankid_call_initiatorNoIndicates if the user or your organization initiated the phone call (so only handled during a CIBA request). Valid values are user (default) or RP. Passed on to BankId without modification.

Custom request parameters

It is possible for the client to pass additional parameters in the request. Thoose parameters will not be handled by the Authorization Server in any way, but they will be returned as is in the response.

If the client for example want to have a custom tag parameter in the response, it can be added to the request like this:

/connect/authorize?client_id=…&redirect_uri=mycallbackurl&response_type=..&scope=…&code_challenge=…&code_challenge_method=…&response_mode=…&nonce=…&state=…&tag=my_value

The response will then include the tag parameter unmodified (ordering of the parameters are not guaranteed):

mycallbackurl?code=…&scope=…&state=…&session_state=…&iss=…&tag=my_value

Last updated on