Gå til hovedinnhold

Tokens

Her finner du noen eksempler på tokens som er utstedt av HelseID

Se Claims for informasjon om claims i tokens.

id_token

Se Terminologi for informasjon om id_token.

Et id_token i sin helhet med header.payload.signature:

eyJhbGciOiJSUzI1NiIsImtpZCI6IkE4RjcwQTI3QjM1MDdDMDYwREM4Qjg3MUI4REIyNEZFMzBFNTc5QTMiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJxUGNLSjdOUWZBWU55TGh4dU5za19qRGxlYU0ifQ.eyJuYmYiOjE0OTgxMzI5MzYsImV4cCI6MTQ5ODEzMzIzNiwiaXNzIjoiaHR0cHM6Ly9oZWxzZWlkLXN0cy51dHZpa2xpbmcubmhuLm5vIiwiYXVkIjoiTkhOLkZJQS5EZW1vLk12Y0h5YnJpZCIsIm5vbmNlIjoiNjM2MzM3Mjk3MDkyOTY3MDQwLlkySm1PV1kzT1dRdFlqZzRZUzAwT0RRMkxUbGpPREl0TVRjMFpESm1NREUwT0RFNVkyUXhZMlppTXpBdE16Rm1aaTAwTldNMExXSmpNREF0Tm1SbE4yVTNZVFUyTjJNdyIsImlhdCI6MTQ5ODEzMjkzNiwiYXRfaGFzaCI6InJ6S1RCMFJQcnhkQVYyRFBleVR4dFEiLCJzaWQiOiJmNmZkY2Q1NmU0YjRmNjVhYzU2NTViMTcwZjhjMzk5MSIsInN1YiI6ImZ5YXdiMVJuQ3pPcVRwYXFjWWxoNEh0RGxVSk9SRXcycnJvR0l3TmNSMFU9IiwiYXV0aF90aW1lIjoxNDk4MTMyOTM1LCJpZHAiOiJpZHBvcnRlbi1vaWRjIiwibG9jYWxlIjoibmIiLCJodHRwczovL25obi5uby9jbGFpbXMvaWRlbnRpdHkvcGlkIjoiMjQwMTk0OTExMTciLCJodHRwczovL25obi5uby9jbGFpbXMvaWRlbnRpdHkvc2VjdXJpdHlfbGV2ZWwiOiI0IiwiaHR0cHM6Ly9uaG4ubm8vY2xhaW1zL2lkZW50aXR5L2Fzc3VyYW5jZV9sZXZlbCI6ImhpZ2giLCJodHRwczovL25obi5uby9jbGFpbXMvaWRlbnRpdHkvcGlkX3BzZXVkb255bSI6Ii9sZ3JhMGc1Z09TY1YrbFZSMTZYakFVMDc2SEkrK0dtZGJVamJkRm0yOGc9IiwiYW1yIjpbImV4dGVybmFsIl19.qm40yqU8tRyrt53D_VJIPtGk6YM8s2nzP5xO03t4mRvYYm_ePdoEQG5axTOh2JX-TMMYB6gQHLEhygm-KyT3BnL11KuTPg29MNndl_foc4RLA5_3za08jwoHvRF1S4m1C0jD-euF7BRzu8NwT_Y1UT0InlFUtvpOKIj9NalWEPnJYom6OlkN9EzgROAo9seUkbD1YxSxeCHw4_B-o5qZyVnr-hTXaATU-zSB2nEi99UZooIIamKm01F-a1UKdDp-MBv8yJXCqMFmIYm9z-hgjjMf0pAwV8nvAPzzosilVLuE_JGfgPr6Xc4iz4PZObI7TgSqeZYIDfkEByU6JAD_1A

Dekodet payload:

{
  "nbf": 1498132936,
  "exp": 1498133236,
  "iss": "https://helseid-sts.test.nhn.no",
  "aud": "NHN.FIA.Demo.MvcHybrid",
  "nonce": "636337297092967040.Y2JmOWY3OWQtYjg4YS00ODQ2LTljODItMTc0ZDJmMDE0ODE5Y2QxY2ZiMzAtMzFmZi00NWM0LWJjMDAtNmRlN2U3YTU2N2Mw",
  "iat": 1498132936,
  "at_hash": "rzKTB0RPrxdAV2DPeyTxtQ",
  "sid": "f6fdcd56e4b4f65ac5655b170f8c3991",
  "sub": "fyawb1RnCzOqTpaqcYlh4HtDlUJOREw2rroGIwNcR0U=",
  "auth_time": 1498132935,
  "idp": "idporten-oidc",
  "locale": "nb",
  "helseid://claims/identity/pid": "24019491117",
  "helseid://claims/identity/security_level": "4",
  "helseid://claims/identity/assurance_level": "high",
  "helseid://claims/identity/pid_pseudonym": "/lgra0g5gOScV+lVR16XjAU076HI++GmdbUjbdFm28g=",
  "amr": [
    "external"
  ]
}

access_token

Se Terminologi for informasjon om access_token.

Et self contained access_token i sin helhet med header.payload.signature:

ey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4phPsxGHyrkSRQPMYNLWzI_b5I1sDtrazxgBdQGcGTeQos1to53e6soSJ4fzEy7gu1J9KTff_V_3oTM65_u_UjgeTxzxI2g

Dekodet payload:

{
  "nbf": 1498132936,
  "exp": 1498136536,
  "iss": "https://helseid-sts.test.nhn.no",
  "aud": "https://helseid-sts.test.nhn.no/resources",
  "client_id": "NHN.FIA.Demo.MvcHybrid",
  "sub": "fyawb1RnCzOqTpaqcYlh4HtDlUJOREw2rroGIwNcR0U=",
  "auth_time": 1498132935,
  "idp": "idporten-oidc",
  "scope": [
    "profile",
    "openid",
    "helseid://scopes/identity/pid_pseudonym",
    "helseid://scopes/identity/assurance_level",
    "helseid://scopes/identity/pid",
    "helseid://scopes/identity/security_level"
  ],
  "amr": [
    "external"
  ]
}

Dekodet payload fra access_token for klientregistrering:

{
  "nbf": 1498137660,
  "exp": 1498141260,
  "iss": "https://helseid-sts.test.nhn.no",
  "aud": [
    "https://helseid-sts.test.nhn.no/resources",
    "configuration_api"
  ],
  "client_id": "console.dcr",
  "scope": [
    "helseid://scopes/client/dcr"
  ]
}