Empty userinfo after authorization using social

When I authorization using social
For example
url = ‘https://’ + AUTH_DOMAIN + ‘/authorize?response_type=code&client_id=CLIENT_ID&connection=google-oauth2&redirect_uri=REDIRECT_URI’)
i get code, next i send request for getting access_token
POST url = ‘https://p2pgroup.eu.auth0.com/oauth/token
with body
data = {
‘grant_type’: ‘authorization_code’,
‘client_id’: ID’,
‘client_secret’: SICRET,
‘scope’: ‘profile, openid’,
‘code’: code,
‘redirect_uri’: ‘http://localhost:8000’,

}
I get access_token
and next when I use this token for getting user information I sent a request to
https://p2pgroup.eu.auth0.com/userinfo with headers, I get a response with status_code == 200
but body is empty, how can I get userinfo using social auth ?

Hey there @Evgeniy.R, welcome to our Community!

When you get a chance, would it be possible for you to snag a HAR file of the currently flow and direct message me with it? Please be sure to select “Preserve log” to catch redirects and scrub the file of user passwords before passing, thanks!

Hi @Evgeniy.R, following up here after looking at this with a senior engineer and reviewing the HAR file you sent, we didn’t see the User info call occur. In fact we saw it being leveraged with an admin account. Admin profiles actually reside in the Auth0 Master tenant, not within your tenant. Can you take a test user within your tenant and perform the same workflow while capturing another HAR file? Thanks in advance!

Following up on this front @Evgeniy.R and seeing how things are going on creating a test user and reproducing the same workflow? Thanks!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.