This is a vanilla developer okta instance.
How do I get the /userinfo endpoint to return information about a user, specially email and name?
I’m going to the /authorize endpoint where I get prompted to log in
- I get an authorization code back
I go to the /token endpoint, provide the authorization code, and get an Access Token back.
I use the access token to authenticate to the /userinfo endpoint.
I get the below back:
{
“sub”: “00uqiyi3x1j5I0JBd5d6”
}
tyty
2
What scopes are you passing in the authorize request? You also might want to check out this post regarding requesting an id token instead/as well:
2 Likes
Thank you! I was only passing openid. scope=openid%20email%20profile worked!
1 Like
system
Closed
4
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.