Hello there - I am using the following work flow to login and retrieve user information, but it only returns part of user information. Why and how to fix it? Thanks!
- use the following to authorize
okta.com/oauth2/default/v1/authorize?client_id=XYZ" +
“&response_type=code&scope=openid&redirect_uri=https://localhost:44314/home/index&” +
“state=stateABCDEFG&nonce=g5ly497e8psxyz”; - Get the code it returned.
- Use okta.com/oauth2/default/v1/token with “grant_type” of "authorization_code to get access token
- Get the access token and use okta.com/oauth2/default/v1/userinfo to get user information.
- Only the following information is returned.
{“sub”:“00u2mrya9kGV9JvGo5d7”,“accesslevel”:5,“groups”:[“Everyone”,“HPMS”]}
Why it does not return full user infor? If I want to return access token and user information in step 1 (authorize), what parameters I should use?
Thanks