I’m new to this forum and we just started using Auth0 - so I just may not have digged deep enough to find the right way to reach following:
We need some of the claims from the OIDC standard profile for our application (e.g., zoneinfo and locale). The documentation (OpenID Connect Scopes) tells that these are returned in an id token. However, I haven’t found a place where these properties can be administrated for a user in the Auth0 user management.
Then, I tried to add “locale” : “en-US” to the user_metadata of a user. Still, the id_token in the token response did not contain the locale. The only way I could reach that was to add a post-login action to the login flow and explicitly add the “locale”, “zoneinfo” … claims to the id token:
api.idToken.setCustomClaim(`zoneinfo`, event.user.user_metadata.zoneinfo);
Is this really the correct way in Auth0 to deliver standard OIDC claims to id tokens? Please note that this is not about custom claims which do not appear in the standard OIDC scopes.
By the way: unfortunately, I could not select the oidc and id_token tags for creating this topic.
