Introspect is a standard endpoint mainly used by Resource Servers to determine the particuar authorization context for an Access Token. A Resource Server may need such information to validate incomming tokens before granting access to Proteted Resources it hosts. 

As the Access Tokens used by the OIDC Provider from BankID are self-contained most of the validation process can be performed without calling the Introspection endpoint. There are however two reasons for still using introspect:

  • To check if the token has not been revoked for any reason prior to the expiry time that is embedded in the token itself
  • To get access to confidential claims that are not contained in the access token itself. The bankid_altsub is one such example

Using introspect also simplifies the validation process for the OIDC Client by leaving all self-contained checks to the OIDC Provider.

Note that the OIDC Provider from BankID does not support introspection of Refresh Tokens.



POST 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 response

401 Unauthorized if client authentication fails with JSON containing same standard error reponse elements as for the token endpoint

200 OK with JSON containing only "active : false" if the query is otherwise invalid

ExampleSee below

The recommended practise for merchants is to use the Introspect URL from openid-configuration rather than hardcoding the below URL value.

Request parameters

 The following standard parameters are supported. In addition comes parameters related to Client authentication.

tokenJWT value of the token subject to introspection
token_type_hintMust contain the value bid_access_token to signify that the Access Token in question is of the type supported by the OIDC Provider from BankID

Response elements

The response is a JSON structure containing the same claims as those contained in the JWT Access Token subject to introspection. The following additional claims that are specific for the introspection response are also included:

Indicator of whether or not the presented token is currently active 
client_idIdentifier of the OIDC client that requested the token
nnin_altsubSee ID Token. This claim may be returned via introspection to eligible resources servers regardless of any such claim returned in the ID Token to the OIDC client in question

Note that the introspection reponse for tokens via the Client Credential Grant have a different structure since there is no end user involved in that case.


POST /auth/realms/current/protocol/openid-connect/token/introspect HTTP/1.1
User-Agent: curl/7.64.1
Accept: */*
Authorization: Basic dGluZm86MDEyMzQ1NjctODlhYi1jZGVmLTAxMjMtNDU2Nzg5YWJjZGVm
Content-Length: 1538
Content-Type: application/x-www-form-urlencoded


HTTP/1.1 200 OK
Date: Wed, 18 Aug 2021 12:28:48 GMT
Server: web
X-XSS-Protection: 1; mode=block
Strict-Transport-Security: max-age=31536000
X-Content-Type-Options: nosniff
Content-Type: application/json
Referrer-Policy: no-referrer
Content-Length: 966

    "exp": 1629289953,
    "iat": 1629289653,
    "auth_time": 1629289634,
    "jti": "b47e41aa-f689-4f68-80d4-4fdda1855f8d",
    "iss": "",
    "aud": "tinfo",
    "sub": "2cd7cecd-d444-4685-bb04-8bbfdb45a069",
    "typ": "Bearer",
    "azp": "oidc-testclient",
    "nonce": "demoNonce",
    "session_state": "66801cef-7746-4dd6-a018-43bda5c7002b",
    "name": "Test User BankID",
    "given_name": "Test User",
    "family_name": "BankID",
    "birthdate": "2018-05-09",
    "acr": "urn:bankid:bid;LOA=4",
    "realm_access": {
        "roles": [
    "resource_access": {
        "tinfo": {
            "roles": [
    "scope": "openid profile",
    "client_org_no": "918713867",
    "nnin_altsub": "09051888860",
    "amr": "BID",
    "resource_claims": {},
    "active": true,
    "bankid_altsub": "9578-6000-4-634582",
    "originator": "CN=BankID - TestBank1 - Bank CA 3,OU=123456789,O=TestBank1 AS,C=NO;OrginatorId=9980;OriginatorName=BINAS;OriginatorId=9980",
    "partner_org_no": "918713867",
    "token_type": "Bearer",
    "client_name": "OIDC Testklient",
    "client_id": "oidc-testclient"