You need to sign in to do that
Don't have an account?
Nguyễn Văn Tiến
[Repsot] Get access token during Auth Registration Handler
Hi everyone,
I have asked this question before but it seems that the post has gotten to the forgotten zone and no one has yet an answer so I just repost the question.
When we use the AuthProviders for Single Sign-on, there's a Registration Handler. For the most part of the handler, I did as Salesforce told. But now I want to do more, I want to get more information of basic profile from the associated websites. For that I need to have the access token for REST API call. But when I use Auth.AuthToken.getAccessToken('0SO7xxx', 'LinkedIn') in my Handler it return a null token.
Can anybody tell me why does the method getAccessToken return null? Or show me another way to get the access token?
I have asked this question before but it seems that the post has gotten to the forgotten zone and no one has yet an answer so I just repost the question.
When we use the AuthProviders for Single Sign-on, there's a Registration Handler. For the most part of the handler, I did as Salesforce told. But now I want to do more, I want to get more information of basic profile from the associated websites. For that I need to have the access token for REST API call. But when I use Auth.AuthToken.getAccessToken('0SO7xxx', 'LinkedIn') in my Handler it return a null token.
Can anybody tell me why does the method getAccessToken return null? Or show me another way to get the access token?