URLhttps://<tinfo-userinfo-baseurl>/userinfo
Request

GET without any parameters

POST is not supported

CORS is not supported

AuthenticationAccess Token as Bearer Token in Authorization Header
Response
200OKJWT containing response elements
401UnathorizedBearer token is not accepted for any reason

Error responses contains further information on the reason according to standard.

ExampleSee below

This method provides additional information about an end user beyond what is contained in the ID Token. The end user in question is given by the sub value contained in the access token. The implementation of userinfo is according to the OpenID Connect  standard.

Response elements

Userinfo returns signed responses in JWT format. The claims contained in the encoded JWT includes supported standard TINFO claims  along with the following additional claims:

ClaimExampleDescription
iss<tinfo-baseurl>TINFO Resource Server
audoidc-testclientRequesting OIDC client

Example

Userinfo request
TBC


Decoded response
{
  "iss": "https://prototype.bankidnorge.no/tinfo-core-systemtest/",
  "sub": "9578-6000-4-30799",
  "aud": "oidc-testclient",
  "name": "Frode Beckmann NIlsen",
  "given_name": "Frode",
  "family_name": "NIlsen",
  "updated_at": 1519992419860,
  "email": "frobnil@online.no",
  "birthdate": "181266",
  "phone_number": "95871775",
  "address": {
    "formatted": "Lybekkveien 11C\nOslo 0772",
    "street_address": "Lybekkveien 11C",
    "locality": "0772",
    "postal_code": "Oslo"
  }
}


  • No labels