Adding user email to the ID Token using Actions?

The ID token will get an email claim automatically if the following is true:

  1. The user object has an email attribute
  2. You request the email scope in the /authorize request

If either of these are false, you can still add it by using a rule or an Action. You should be able to do that without using a namespace - eg: context.idToken.email.

1 Like