Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space PDOIDC and version master

Token is a standard endpoint used for requesting various combinations of ID TokenAccess Token and Refresh Token. In addition, BankID OIDC extends the token response with the BankID Proof token if requested. The type of request (and corresponding response) is determined by the grant_type request parameter as described further below. 

Table of Contents
maxLevel2

Overview

URLhttps://<oidc-baseurl>/protocol/openid-connect/token
RequestPOST with parameters in body as application/x-www-form-urlencoded data
AuthenticationOIDC/OAuth2 client authentication according to supported methods
Success response200 OK with JSON containing response elements
Error response400 Bad request with JSON containing standard error reponse elements
ExampleSee below

...

The response for Authorization Code and Refresh Token is a JSON structure according to KeycloackKeycloak default with the following claims

NameDescriptionComment
id_tokenJWT encoded ID TokenStandard claim with Keycloack Keycloak specific content
access_tokenJWT encoded Access TokenStandard claim with Keycloack Keycloak specific content
token_typeAlways bearerStandard claim. Change notice: Will be changed to Bearer
expires_inLife-time of access_token.Standard claim. Related to the exp claim inside the Access Token. See session handling
refresh_token

JWT encoded Refresh Token  

Standard claim with Keycloack Keycloak specific content
refresh_expires_inLife-time of refresh_tokenKeycloack Keycloak specific claim. Related to the exp claim inside the Refresh Token. See session handling 
bankid_proofJWT encoded BankID Proof TokenBankID OIDC custom claim that includes proof of BankID authentication. Included if requested using the bankid_proof scope.
not-before-policyTBDKeycloack Keycloak specific claim
session_stateTBD

Keycloack Keycloak specific claim. Depreciation notice: Will be replaced by sid

sidSession IDKeycloack Keycloak specific claim.

Client Credentials

...