Skip to main content

Attributes reference for ID-porten

You use ID-porten to verify the end-user's identity and obtain relevant personal details about them.

This page summarises the user information you can request and receive for the following authentication protocols:

Want to use SAML 2.0?

For integrations using the SAML 2.0 authentication protocol, see the SAML requested attributes page.

OIDC scopes and claims

You can use the following scopes to request user information from an end-user using ID-porten.

OIDC response example

{
"at_hash": "2IwNPkKqZDXmst5YsTMhOA",
"sid": "EC744F53F8047F39609E585581630DA1",
"sub": "fUtzzasbgfm2jtIW-Tr5FJ9lKpr7hS2sVGj85bbDx7A=",
"auth_time": 1766406066,
"idp": "idporten",
"idp_id": "17029012345",
"name": "Kari Nordmann",
"family_name": "Nordmann",
"given_name": "Kari",
"nin": "17029012345",
"nin_type": "BIRTH",
"nin_issuing_country": "NO",
"idporten_sub": "Od7HqOBMlcMJn0Hr...",
"idporten_loa": "idporten-loa-high",
"idporten_idp": "BankID",
"idp_issuer": "https://test.idporten.no",
"transaction_id": "71174700-2d22-cd49-a786-adc6559d2a3f",
"sandbox": true,
"acr": "high"
}

Authentication REST API attributes

The Signicat Authentication REST API supports the following request and response attributes for ID-porten:

Authentication REST API response example

{
"id": "554df273-e0e1-4336-b4c9-a5ecbbd7041d",
"accountId": "a-sdge-sUw4WTJf0vCe7JGfCVgk",
"authenticationUrl": "https://<YOUR_SIGNICAT_DOMAIN>/broker/sp/external-service/login?messageId=21b064c3-28b...",
"status": "SUCCESS",
"provider": "idporten",
"subject": {
"id": "XLooMeorPC04DdzQafPFm6W9hwnQys2lb8rJbY573R8=",
"name": "Kari Nordmann",
"firstName": "Kari",
"lastName": "Nordmann",
"nin": {
"value": "17029012345",
"issuingCountry": "NO",
"type": "BIRTH"
},
"idportenSub": "Od7HqOBMlcMJn0Hr...",
"idportenLoa": "idporten-loa-substantial",
"idportenIdp": "BankID"
},
"callbackUrls": {
"success": "https://example.com/success",
"abort": "https://example.com/abort",
"error": "https://example.com/error"
},
"environment": {
"ipAddress": "192.0.2.2",
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36"
},
"loa": "substantial",
"allowedProviders": [
"idporten"
],
"language": "nb",
"flow": "redirect",
"requestedAttributes": [
"idportenIdp",
"idportenLoa",
"idportenSub",
"name",
"nin"
],
"sessionLifetime": 1200,
"expiresAt": "2025-12-22T10:31:35.3906701+00:00"
}