PT-AM-CPE practice question 31 of 35

An OpenID Connect application makes a request for an ID token with the openid and profile scope. Which set of claim attributes are available with the profile scope?

Full set: 100 questions
Answer options
A: givenName, familyName, preferredLocale, name
B: givenname, family_name, locale, name
C: given_name, family_name, locale, name Correct answer
D: given_name, family_name, preferred_locale, name
Correct Answer:
C. given_name, family_name, locale, name
Explanation

The OpenID Connect (OIDC) Core 1.0 specification defines a standard set of claims that can be requested using the profile scope. These claims are formatted using snakecase. The claims givenname, familyname, locale, and name are all valid standard claims that are associated with the profile scope and are returned in the ID Token or from the UserInfo endpoint when this scope is granted by the user.

Why Incorrect

A. This option uses camelCase (givenName, familyName), which is not the standard notation for OIDC claims; snakecase is required.
B. This option includes givenname, which is an incorrect format. The correct OIDC standard claim name is givenname.
D. This option includes preferredlocale, which is not a standard OIDC claim. The correct standard claim is locale.

References

1. OpenID Foundation, "OpenID Connect Core 1.0 incorporating errata set 1," Section 5.1. Standard Claims. (https://openid.net/specs/openid-connect-core-10.html#StandardClaims)

2. OpenID Foundation, "OpenID Connect Core 1.0 incorporating errata set 1," Section 5.4. Requesting Claims using Scope Values. (https://openid.net/specs/openid-connect-core-10.html#ScopeClaims)

Scroll to Top