which doesn’t include access_token. I tried to add offline access as this doc suggested ( Identity Provider Access Tokens) but still getting the same result.
The code you included is associated with an authentication transaction. As stated in the documentation you linked, the IdP access tokens need to be retrieved through a Management API call to the get user by identifier endpoint. In addition, the access tokens used in the Management API call needs to have the proper scopes, in particular, for IdP access tokens it needs the read:user_idp_tokens.
Ensure that you use an access token with the above scope; if you’re unable to trace the source of the problem then update the question with the code related to how you’re calling the Management API.
@jmangelo , I also meet problem when trying to get access_token from salesforce.
The user profile returned from endpoint https://lcheng.auth0.com/userinfo, doesn’t have access_token info, following is the identities field.
identities":{“isSocial”:true,“provider”:“salesforce”,“user_id”:“00590000002pYgSAAU”,“connection”:“salesforce”}],
The scope for “user_idp_tokens” is also configured, following is the result from Get all client grants API
{
“id”: “cgr_HfcBYrsbfhgjLPmn”,
“client_id”: “6ESZfohmaJ8Z5xk5iCBtSh8FgNtn6hRQ”,
“audience”: “https://lcheng.auth0.com/api/v2/”,
“scope”:
“read:users”,
“read:connections”,
“read:user_idp_tokens”
]
}
I also tried endpoint, https://lcheng.auth0.com/api/v2/users/00590000002pYgSAAU, the “user_id” is get from step1. however, the response is
{
“statusCode”: 400,
“error”: “Bad Request”,
“message”: “Object didn’t pass validation for format user-id: 00590000002pYgSAAU”,
“errorCode”: “invalid_uri”
}