Hi @dan.woda,
I have successfully setup salesforce social login in auth0 and tested it.
what api of auth0 can i call to get access token if i am already logged in into salesforce into my browser.
@sgo @konrad.sopala @rueben.tiow @nicolas_sabena @josh.cunningham @markus.schrickel
can you please help me?
Hi @keyur.jain,
Thanks for reaching out to the Auth0 Community!
I understand that you’d like to get the Access Token for an authenticated user using the Salesforce Social Connection.
To do so, you can make a GET request to the Management API /api/v2/users
endpoint after the user has authenticated, and find the access token for the identity provider in the identities
array, under the element for the Salesforce connection.
Here is an example when using the Google Social Connection:
"identities": [
{
"provider": "google-oauth2",
"access_token": "ya29.a0ARrdaM_vh...",
"expires_in": 3599,
"user_id": "105080075773820224778",
"connection": "google-oauth2",
"isSocial": true
}
Our documentation here goes into more details: https://auth0.com/docs/security/tokens/access-tokens/identity-provider-access-tokens
Please let me know if you have any questions. I’d be happy to assist.
Thank you.
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.