The Userinfo endpoint supports an enlarged set of claims beyond the basic set of claims included in the ID Token. The set of claims actually returned via Userinfo depends on the scopes and claims requested by the OIDC Client.
Note that the basic set of claims from the ID Token are duplicated in the Userinfo response. Note further that additional claims beyond this basic set do as a rule-of-thumb demand explicit consent from the end-user.
The set of additional claims include both standardized and non-standardized elements. Supported standarized claims are marked by or in the following table. Claims marked by are currently not supported but will be added. Unsupported standardized claims are marked with . Non-standard claims are marked with and are specific for the OIDC Provider from BankID.
Claim | Support | Example | Description | Comment | Editorial comment |
---|---|---|---|---|---|
sub | 9578-5999-4-1765512 | Subject Identifier | Duplicated from ID Token | ||
name | Nilsen, Frode Beckmann | Full name | Duplicated from ID Token | ||
gender | Gender | Duplicated from ID Token | Must be added | ||
birthdate | 1966-12-18 | Birthdate | Duplicated from ID Token | ||
given_name | Frode Beckmann | Given name (first name) | |||
family_name | Nilsen | Surname (last name) | |||
middle_name | Middle Name | Must be added | |||
nickname | Casual name | ||||
preferred_username | Nilsen, Frode Beckmann | Shorthand name | Must be reviewed | ||
profile | Profile page URL | ||||
picture | Picture URL | ||||
website | Homepage URL | ||||
email | Preferred email | Must be added | |||
email_verified | Email verification status | Must be added | |||
zoneinfo | Time zone | ||||
locale | Locale | ||||
phone_number | 95871775 | Preferred phone numer | |||
phone_number_verified | false | Phone number verification status | |||
address | { "formatted": "Lybekkveien 11C\n0772 Oslo\nNorway", "country": "Norway", "street_address": "Lybekkveien 11C", "postal_code": "0772", "locality": "Oslo", "house_number": "11", "house_letter": "C", "street_name": "Lybekkveien" } | Postal address | Standardized claim with both standardized and non-standard sub-claims | ||
all_phone_numbers | {{"number":"95871775","number_verified":false},{"number":"46897469","number_verified":false},{"number":"94782958","number_verified":false}} |
The standardized address
claim returns a JSON object supporting the following sub-claims, some of which are standardized and some of which are non-standard.
Claim | Support | Example | Description | Comment | Editorial comment |
---|---|---|---|---|---|
formatted | Lybekkveien 11C\n0772 Oslo\nNorway | Full mailing address | |||
street_address | Lybekkveien 11C | Full street address | |||
locality | Oslo | City or locality | |||
region | Region | ||||
postal_code | 0772 | Postal code | |||
country | Norway | Country | |||
street_name | Lybekkveien | Street name component from | Review | ||
house_numer | 11 | House number component from street_address | Review | ||
house_letter | C | House letter component from street_address | Review |