OIDC4IA ID token#
On this page
The ID token that ID Check returns follows the OpenID Connect for Identity Assurance (OIDC4IA) specification. It contains verified identity claims with evidence of how the identity was verified.
Token format#
ID Check returns the ID token as an encrypted JSON Web Token (JWT) in JSON Web Encryption (JWE) format. It contains a signed JWT.
| Layer | Format | Algorithm |
|---|---|---|
| Outer | JWE | RSA-OAEP-256 with A256GCM |
| Inner | Signed JWT | ES256 |
Complete token structure#
After decryption and signature verification:
{
"iss": "https://{base-url}",
"sub": "pairwise-hashed-subject-identifier",
"aud": "dip_aci_your_client_id",
"exp": 1759839472,
"iat": 1759835872,
"auth_time": 1759835872,
"jti": "e29b7c1e-6b4a-4a3b-9b1a-2f6c8a7d5e10",
"nonce": "n-0S6_WzA2Mj",
"acr": "urn:bankid:idcheck",
"amr": ["face", "user"],
"verified_claims": {
"verification": {
"trust_framework": "stoe",
"evidence": [
{
"type": "document",
"document_details": {
"type": "passport",
"document_number": "AB1234567",
"date_of_issuance": "2020-01-15",
"date_of_expiry": "2030-01-15",
"issuer": {
"country_code": "NOR",
"name": "INNLANDET POLITIDISTRIKT"
},
"personal_number": "12345678901"
},
"check_details": [
{
"check_method": "vcrypt",
"result": "success"
},
{
"check_method": "data",
"organization": "id.politiet.no",
"time": "2024-01-15T10:30:00Z",
"result": "valid"
}
]
}
]
},
"claims": {
"given_name": "AASAMUND SPECIMEN",
"family_name": "OESTENBYEN",
"picture": "data:image/jpeg;base64,/9j/4AAQSkZJRg...",
"birthdate": "1990-01-15",
"gender": "male",
"nationalities": ["NOR"]
}
}
}Standard OIDC claims#
These claims are always present in the ID token:
| Claim | Type | Required | Description |
|---|---|---|---|
iss | string | Yes | Issuer identifier (ID Check base URL) |
sub | string | Yes | Pairwise subject identifier (unique per client) |
aud | string | Yes | Audience (the client's client_id) |
exp | number | Yes | Expiration time (Unix timestamp) |
iat | number | Yes | Issued at time (Unix timestamp) |
auth_time | number | Yes | Time of authentication (Unix timestamp) |
jti | string | Yes | Unique identifier for this token (JWT ID). The client can use it to tell tokens apart |
nonce | string | Yes | Nonce from the authorisation request |
acr | string | Yes | Authentication Context Class Reference |
amr | string[] | Yes | Authentication Methods References |
Example standard claims#
{
"iss": "https://{base-url}",
"sub": "a1b2c3d4e5f6g7h8i9j0",
"aud": "dip_aci_your_client_id",
"exp": 1759839472,
"iat": 1759835872,
"auth_time": 1759835872,
"jti": "e29b7c1e-6b4a-4a3b-9b1a-2f6c8a7d5e10",
"nonce": "n-0S6_WzA2Mj",
"acr": "urn:bankid:idcheck",
"amr": ["face", "user"]
}ACR values#
| Value | Description |
|---|---|
urn:bankid:idcheck | Identity verified via document and facial recognition |
AMR values#
| Value | Description |
|---|---|
face | Facial recognition performed |
user | User interaction completed |
Verified claims structure#
The verified_claims object contains identity data with verification evidence.
Top-level structure#
{
"verified_claims": {
"verification": { ... },
"claims": { ... }
}
}| Field | Type | Description |
|---|---|---|
verification | object | How the identity was verified |
claims | object | The verified identity claims |
Verification object#
The verification object describes the trust framework and evidence used.
{
"verification": {
"trust_framework": "stoe",
"evidence": [ ... ]
}
}| Field | Type | Description |
|---|---|---|
trust_framework | string | Trust framework identifier |
evidence | array | List of evidence objects |
Trust framework values#
| Value | Description |
|---|---|
stoe | Standard trust framework for identity verification |
stoe_etsi | European Telecommunications Standards Institute (ETSI) compliant, with stricter requirements. Requires the client to request given_name and family_name. If there is an issuer check, it must be valid. The relying party (RP) must check this: ID Check does not reject the result. |
Evidence object#
Each evidence object describes one piece of verification evidence.
Note: If requested evidence or claims are not available in the ID Check data, the response does not include them. The response only contains data that was successfully retrieved.
Document evidence#
{
"type": "document",
"document_details": {
"type": "passport",
"document_number": "AB1234567",
"date_of_issuance": "2020-01-15",
"date_of_expiry": "2030-01-15",
"issuer": {
"country_code": "NOR",
"name": "INNLANDET POLITIDISTRIKT"
},
"personal_number": "12345678901"
},
"check_details": [
{
"check_method": "vcrypt",
"result": "success"
},
{
"check_method": "data",
"organization": "id.politiet.no",
"time": "2024-01-15T10:30:00Z",
"result": "valid"
}
]
}Document details fields#
| Field | Type | Description |
|---|---|---|
type | string | Document type |
document_number | string | Document identification number |
date_of_issuance | string | Issue date (ISO 8601: YYYY-MM-DD) |
date_of_expiry | string | Expiry date (ISO 8601: YYYY-MM-DD) |
issuer | object | Issuing authority details |
issuer.country_code | string | Issuing country (ISO 3166-1 alpha-3) |
issuer.name | string | Issuing authority name |
personal_number | string | For Norwegian documents, this is the fødselsnummer (NNIN). For non-Norwegian documents, this may contain a national identification number from the issuing country, or may be absent. |
Document type values#
| Value | Description |
|---|---|
passport | Passport document |
idcard | National ID card |
Document check details#
The check_details array on document evidence contains verification results that follow the OIDC4IA specification. ID Check always includes it on document evidence.
{
"check_details": [
{
"check_method": "vcrypt",
"result": "success"
},
{
"check_method": "data",
"organization": "id.politiet.no",
"time": "2024-01-15T10:30:00Z",
"result": "valid"
}
]
}| Field | Type | Description |
|---|---|---|
check_details | array | Verification checks performed on the document |
check_details[].check_method | string | Check method: vcrypt (cryptographic verification) or data (registry/issuer data check) |
check_details[].result | string | Result of the check |
check_details[].organization | string | Authority that performed the check (data only) |
check_details[].time | string | ISO 8601 timestamp of the check (data only) |
vcrypt check (active authentication)#
Cryptographic verification of the document chip.
| Result | Description |
|---|---|
success | Document chip authentication successful |
failed | Document chip authentication failed |
not_applicable | Active authentication not performed |
data check (issuer registry verification)#
Verification against the issuing authority's registry. Only present when ID Check performed an issuer check. ID Check does this only for Norwegian documents. For stoe_etsi, the RP must reject the result when this check is revoked. See Trust framework requirements.
| Result | Description |
|---|---|
valid | Document verified as valid by issuing authority |
revoked | Document has been revoked |
Verified identity claims#
The claims object contains the verified identity data.
{
"claims": {
"name": "AASAMUND SPECIMEN OESTENBYEN",
"given_name": "AASAMUND SPECIMEN",
"family_name": "OESTENBYEN",
"picture": "data:image/jpeg;base64,/9j/4AAQSkZJRg...",
"birthdate": "1990-01-15",
"gender": "male",
"nationalities": ["NOR"]
}
}Available claims#
| Claim | Type | Description |
|---|---|---|
name | string | Full name |
given_name | string | First name(s) |
family_name | string | Last name(s) |
picture | string | Portrait photo from identity document (data URI: data:image/jpeg;base64,...) |
birthdate | string | Date of birth (ISO 8601: YYYY-MM-DD) |
gender | string | Gender |
nationalities | string[] | List of nationalities |
Gender values#
| Value | Description |
|---|---|
male | Male |
female | Female |
unknown | Unknown gender |
unspecified | Gender not specified |
Nationality format#
ID Check returns nationalities as ISO 3166-1 alpha-3 country codes:
| Code | Country |
|---|---|
NOR | Norway |
SWE | Sweden |
DNK | Denmark |
DEU | Germany |
| etc. |
Conditional claims#
The ID token only includes a claim if:
- 1Requested in the pushed authorisation request (PAR)
The client included the claim in the claims request (all claims must have
essential: true; ID Check rejectsessential: falseat PAR time) - 2Available from source
The ID Check service provided the data
- 3Consent given
The user gave consent (if required)
If a requested claim is not available, the response does not include it.
Trust framework requirements#
stoe (standard)#
- ID Check includes all available claims
- Issuer check may be any value
stoe_etsi (ETSI)#
- Stricter validation requirements
- The client must request
given_nameandfamily_nameas claims - If there is an issuer check, its result must be
valid - ID Check does not enforce the issuer check. The RP must reject the result when the
datacheck isrevoked - Important: Currently, the issuer check is only available for Norwegian documents.
Token validation#
Required validations#
- 1
Decrypt the JWE using the client's private key
- 2
Verify the JWT signature using the ID Check public key from
/jwks - 3Validate standard claims
| Claim | Validation |
|---|---|
iss | Must match the ID Check issuer URL |
aud | Must match the client_id |
exp | Must not be expired |
iat | Must not be in the future |
nonce | Must match the nonce of the PAR request |
Optional validations#
| Claim | Validation |
|---|---|
acr | Should be urn:bankid:idcheck |
amr | Should contain expected methods |
auth_time | Should be within acceptable timeframe |
Data validation#
The checks above cover token integrity. In addition, the RP should validate that the identity data itself is acceptable for its use case and compliance requirements.
ID Check applies filtering during the verification process, to reject documents early and to give useful feedback to end users. These checks may not cover all the specific requirements of the RP. Examples of additional validations to consider:
| Check | Description |
|---|---|
| Issuer country | Verify that the document's issuer.country_code is from a country that the RP accepts |
| Document type | Verify that the document_details.type is acceptable for the use case of the RP |
| Document expiry | Apply the RP's own policy for how close to expiry it accepts documents |
| Check results | Evaluate check_details results against the risk tolerance of the RP |
| Identity claims | Validate that the returned claims meet the business and compliance needs of the RP |
The RP is responsible for its own compliance with applicable legislation. This includes verifying that the data it receives is sufficient for its purposes.
Complete example#
Request (PAR claims parameter)#
{
"id_token": {
"verified_claims": {
"verification": {
"trust_framework": { "value": "stoe" },
"evidence": [
{
"type": { "value": "document" },
"document_details": {
"type": null,
"document_number": null,
"date_of_expiry": null,
"issuer": null,
"personal_number": null
}
}
]
},
"claims": {
"given_name": { "essential": true },
"family_name": { "essential": true },
"picture": { "essential": true },
"birthdate": { "essential": true }
}
}
}
}Response (ID token verified_claims)#
{
"verified_claims": {
"verification": {
"trust_framework": "stoe",
"evidence": [
{
"type": "document",
"document_details": {
"type": "passport",
"document_number": "AB1234567",
"date_of_expiry": "2030-01-15",
"issuer": {
"country_code": "NOR",
"name": "INNLANDET POLITIDISTRIKT"
},
"personal_number": "12345678901"
},
"check_details": [
{
"check_method": "vcrypt",
"result": "success"
},
{
"check_method": "data",
"organization": "id.politiet.no",
"time": "2024-01-15T10:30:00Z",
"result": "valid"
}
]
}
]
},
"claims": {
"given_name": "AASAMUND SPECIMEN",
"family_name": "OESTENBYEN",
"picture": "data:image/jpeg;base64,/9j/4AAQSkZJRg...",
"birthdate": "1990-01-15"
}
}
}Note: The response includes only the requested fields.
Next steps#
- PAR request - How to request specific claims
- Token request - Token exchange endpoint
- Authentication - JWT requirements