Skip to main content
Skip table of contents

Common OpenID Connect claims

What would I get by default from OpenAthens Keystone?

The preconfigured rules will take care of many SAML attributes and Keystone will output several claims from a standard OpenAthens login:

  • sub - a non-persistent user identifier.

  • realmName - the SAML entityID of the end-users' organization - e.g. https://idp.hogwarts.sch.uk/openathens 

  • Issuer.errorURL - where present will be a URL a user can be sent to when you can't let them in because of something at their end. See: The errorURL attribute and what it is for

  • eduPersonScopedAffiliation - a scoped role - e.g. member@hogwarts.sch.uk 

  • derivedEduPersonAffiliation - just the role bit extracted from the thing above - e.g. member

  • derivedEduPersonScope - just the scope bit, etc - e.g. hogwarts.sch.uk 

  • One or both of these identifiers depending on the identity provider

    • eduPersonTargetedID - a persistent user identifier, being depreciated in many federations 

    • pairwiseID - a persistent user identifier that is replacing eduPersonTargetedID

There may be more, depending on what the identity provider is sending, but these should always show up. 

Common OpenID Connect claims

These are the common claims that OIDC typically uses. Most of them are not sent to you via Keystone by default because none of them have a direct equivalent in SAML that is always sent.

We include them here for anyone that has an existing OpenID Connect instance that is already talking to other providers, or are planning one, to help plan any attribute mappings.

The only one of these you can expect to always get from all providers is 'sub'.

OIDC claim

What it is

Example value

SAML equivalent (if any)

sub

Subject.

iw8347598oqw7dp4857q9o87h5f8q437h59o87q94

name

End user's full name in displayable form including all name parts, possibly including titles and suffixes, ordered according to the end user's locale and preferences.

Professor Albus Percival Wulfric Brian Dumbledore

given_name

Given name(s) or first name(s) of the end user. In some cultures, people can have multiple given names; all can be present, with the names being separated by space characters.

Albus

family_name

Surname(s) or last name(s) of the end user. In some cultures, people can have multiple family names or no family name; all can be present, with the names being separated by space characters.

Dumbledore

middle_name

Middle name(s) of the end user. In some cultures, people can have multiple middle names; all can be present, with the names being separated by space characters. Also note that in some cultures, middle names are not used.

Percival Wulfric Brian

nickname

Casual name of the end user that may or may not be the same as the given_name. For instance, a nickname value of Bob might be returned alongside a given_name value of Robert.

Alby

urn:oid:1.3.6.1.4.1.5923.1.1.1.2

(rarely used)

preferred_username

Shorthand name by which the end user wishes to be referred to at the Relying Party, such as janedoe or j.doe. This value MAY be any valid JSON string including special characters such as @, /, or whitespace. Unlikely to be unique

D-wiz

profile

URL of the end user's profile page.

http://staff.hogwarts.sch.uk/headmaster

picture

URL of the end user's profile picture.

http://staff.hogwarts.sch.uk/media/dumbledore_headshot.png

website

URL of the end user's web page or blog. Might be that of their organization.

http://www.hogwarts.sch.uk

email

End user's preferred email address. May be non-unique.

headmaster@hogwarts.sch.uk

gender

End user's gender. Could be any string.

dude

birthdate

End user's birthday, represented as an ISO 8601:2004 YYYY-MM-DD format.

1881-04-12

zoneinfo

String from zoneinfo time zone database representing the end user's time zone.

Europe/London

locale

End user's locale, represented as a BCP47 [RFC5646] language tag. This is typically an ISO 639-1 Alpha-2 language code in lowercase and an ISO 3166-1 Alpha-2 country code in uppercase, separated by a dash.

en-UK

phone_number

End user's preferred telephone number.

+44 (0) 1464 96787

address

End user's preferred postal address. The value of the address member is a JSON [RFC4627] structure.

Hogwarts School of Witchcraft and Wizardry,

UK

updated_at

Time the End user's information was last updated. Its value is a JSON number representing the number of seconds from 1970-01-01T0:0:0Z.

867628800

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.