Authorize
The Authorize Endpoint is part of the OpenID Connect standard that starts a BankID authentication or signing of an end-user via one of the IDP options.
The Authorize Endpoint triggers a series of re-directs, eventually returning to the requesting merchant (OIDC Client) at a redirect_uri specified by the client. For security reasons, only pre-registered redirect URIs are allowed. See provisioning.
Note that BankID OIDC only supports the Authorization Code Flow with PKCE. We recommend checking out the getting started guide for how to initialise an authentication request and handle the response.
For native mobile apps, we (and RFC-8252) recommend the use of either opening the authentication flows in external browsers or in app-browser tabs such as Safari View Controller (iOS) and Chrome Custom Tabs (Android).
Overview
URL |
|
|---|---|
Request | GET with URL query parameters |
Authentication | None |
Success response |
|
Error response |
Other applicable http error code if redirect uri is missing, invalid or mismatching |
Example | See below |
The recommended practice for merchants is to use the Authorize URL from Openid-configuration rather than hardcoding the above URL value.
Request parameters
Name | Description | ||||
|---|---|---|---|---|---|
| List of scope values specifying what kind of resources (dataset) the OIDC Client requests access to. The value | ||||
| Determines the message flow to be used, thus also governing the content and type of the response from the Authorize endpoint. The following combinations are supported:
Note: Other response types such as "id_token", "id_token token" and "code token" was previously supported. | ||||
| Base64-URL-encoded string of the SHA256 hash of a "code verifier" value generated on merchant side. A code verifier is a cryptographically random string using the characters A-Z, a-z, 0-9, and the punctuation characters -._~ (hyphen, period, underscore, and tilde), between 43 and 128 characters long. | ||||
|
| ||||
| Unique ID (arbitrary string) for the OIDC Client in question. This is created as part of the provisioning process. | ||||
| Redirect URI to which the Authorize response will be sent. This URI must exactly match one of the Redirect URI values for the OIDC Client pre-registered at the OpenID Provider | ||||
| Opaque value used to maintain state between the request and the callback. It is strongly recommended that merchants provide this value to mitigate Cross-Site Request Forgery. | ||||
| The response mode to be used for returning parameters from the Authorization Endpoint via
| ||||
| String value used to associate a ODIC Client session with an ID Token, and to mitigate replay attacks. The value is passed through unmodified from the Authentication Request to the ID Token | ||||
| May be used to set a language preference for GUI handling. The default GUI experience supports 'nb' (Norsk Bokmål) and 'en' (English). If | ||||
| Support for the standardized values | ||||
| Requests use of specific Identity provider (IDP), or any IDP at a given Level of Assurance (Authentication Context Class Reference) or above. A selector dialogue is shown to the enduser if more than one IDP option meet the required minimum level. Note that this parameter has no effect if the Examples:
| ||||
| This parameter may be used to specify the use of any particularly named IDP (Authentication Method Reference) along with any pre-configuration for the designated IDP. Note that this parameter has no effect if the See further details on login_hint support for each of the supported IDPs. | ||||
| The display parameter allows Clients to adjust the user interface displayed to end-users to make it more consistent with the device type and viewport size.
| ||||
| JWT value for an ID Token previously issued by the OIDC Provider used as a hint about the enduser's authenticated session with the OIDC provider. Note that this parameter has precedence before both | ||||
request | This parameter may be used to group and send several query parameters as one. The standard specifies guidelines how to use it. BankID OIDC supports both plaintext and encrypted request objects. Encrypted and signed objects are in certain cases possible. If the request parameter contains personal information it should be encrypted, see details in Signing and encryption. The request_uri parameter is not yet supported. | ||||
| Provide the desired version of BankID OIDC. Integer value. See list of available versions. |