Skip to main content

Hi All,

We are struggling with AccessToken from external provider. We have our own SSO/Auth provider. We configured it via Open ID concept. SSO is working fine. But now we want a functionality like auto user creation based on some parameters from the third party provider. We have to make some API calls to retrieve some values. Also once user login/ A super user can make changes for other users. To have super user make these changes we again need to call third party API for which we need the AccessToken, we were trying to access it via Auth.AuthToken.getAccessToken but it is returning NULL .

 

Initially we were using Open ID but Support recommended to have custom auth provider setup, but we are still receiving the NULL value.

 

If someone else found this issues, and resolved it. Kindly help.

5 comments
  1. Jun 17, 2019, 12:40 AM
    It found out that Salesforce has 2000 char limit for Access Token and our third party is sending more char than 2000. Thats why SF standard method was failing to retrieve the access token.
0/9000