Scopes define what user information an application can request from an identity provider. The "openid" scope is mandatory in OIDC and allows authentication but does not include user profile details by itself.
From your provided data, the "scp" (scope) field includes "openid profile email", meaning that:
- openid: Grants permission to authenticate the user and receive their sub (subject identifier).
- profile: Allows access to basic user profile information such as name, family_name, given_name, and unique_name.
- email: Grants access to the user’s email address, which typically includes the email and email_verified claims.
Since your scp field contains profile and email, your app can access both the user's profile details and email address along with authentication.
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin