Skip to content

Default Claims Supported

This is the default claims supported by Authway, but custom support can be added for more/other claims in a customer instance. The scope that the claims belong to is also the default, but could differ for a specific customer.

ScopeClaimDescription
openidsubA unique value identifying the user.
openidtidA unique value identifying the tenant the user belongs to.
profilefamily_nameThe surname of the user. For example “Doe”.
profilegiven_nameThe given name of the user. For example “Joe”.
profilenameThe full name of the user (given_name + ’ ’ + family_name). For example “Joe Doe”.
profilepreferred_usernameThe user name used during sign-in, most commonly the e-mail address.
profilepictureA URL with a user picture taken from Gravatar or the initials if the user does not have a Gravatar picture.
profilebirthdateThe birthdate of the user.
profilegenderThe gender of the user, if it can be derived from an existing social security number.
emailemailThe email address of the user. Could exists twice if the user has another e-mail registered on the person.
emailemail_verifiedTrue if the email address have been verified and it is always the same e-mail address used as user name that are confirmed (or not).
emailsecondary_emailsA JSON array with objects containing email and email_verified. This claim is not added by default to email scope, but you can do it in admin.
phonephone_numberThe phone number of the user.
phonephone_number_verifiedTrue if the phone number have been verified; otherwise False.
orgorgidThe unique identifier for the organisation the user belongs to. Will be the same as tid for users belonging to the mother organisation, but could be different for users belonging to a subsidiary.
orgorginThe organisation number identifying the organisation, if the value exists.
orgcompany_nameThe name of the organisation.
orgmay_loginA JSON array with objects containing information about alternative organisations that the user can sing-in to. This is available for users with linked accounts. Read more.
rolesroleThe name of the group the user belongs to. Zero, one or more claims of this type could exists depending on the number of groups the user belongs to.
permspermThe unique identifier of a permission that the user have. Zero, one or more claims of this type could exists depending on the number of permissions the user got.

Protocol claims

ClaimDescription
amrThe authentication used when the user signed in. The value would be pwd for password or external for an external identity provider (idp). More than one amr claim can exists. For example if multi-factor authentication is used there will be an amr claim with the mfa value.
idpThe identity provider used when amr is external or local if the user used a password to sign-in.
auth_timeThe time the user authenticated. Could be used to evaluate if a re-authentication is required.

There are more protocol claims, but those are the most commonly used claims by developers themselves.

Social security number claims

Authway does not configure the social security number claims by default, because this is a sensitive information about a person which requires extra protection. Think through how you want to control the usage of thoose claims. We recommend a seperate scope, for example naturalPersonNumber. By default Authway will create these social security claims:

CountryClaim type
None, always create independet of country that the social security number belongs too.nationalIdentityNumber
SwedenpersonalIdentityNumber
Norwaynnin
Denmarknin
Finlandhetu
Icelandnin

Special claims

Impersonated users

If a user is impersonated there will be an act claim with a serialized json structure with standard claims from the original user performing the impersonation. For example:

"act": {
   "oid":"d5542f98-8a6f-6d2a-cda0-39fc52ae2b58",
   "sub":"295A0000-E969-E6E6-3826-08DB0DD1E036",
   "tid":"a27446b6-795e-4ccc-1da6-39fc52ae2b37"
}

If impersonation is used there will also be a second amr claim with the value imp (for impersonate).

Linked accounts

If linked account are used the sub claim will have the same value for all linked accounts (that is the definition of linked accounts) which means that it is not unique over all tenants anymore. In that case a oid claim (object id) is also issued with a true unique identifier over all tenants.

For linked accounts the a may_login claim is also issued for org scope, which contains a serialized JSON array with information about other organisations that the user could switch to. For example:

"may_login": {
   [{
      "oid":"d5542f98-8a6f-6d2a-cda0-39fc52ae2b58", 
      "tid":"ffffffff-ffff-ffff-ffff-ffffffffffff",
      "companyname": "Privatpersoner"
   }]
}
Last updated on