AuthToken using Open Id Connect

Salesforce Asked by Bergin Panimayam on January 6, 2022

We use a third party provider for SSO using OpenId Connect. We use the accessToken for the logged in user when making API calls for user session validation.

When we do an Auth.AuthToken.getAccessToken() call, does Salesforce save the token locally or does it go to the auth provider every time we call Auth.AuthToken.getAccessToken()?

I’m trying to minimize the number of accessToken calls to my authProvider as we are hitting their rate limit.

Thanks in advance for your comments/answers.

One Answer

I found the answer, Auth.AuthToken.getAccessToken() goes to the auth provider only once to get the access token, however when we make a refreshAccessToken call, Salesforce goes to the auth provider and the accessToken is updated. On subsequent getAccessToken() calls, Salesforce returns the existing access token.

Answered by Bergin Panimayam on January 6, 2022

Add your own answers!

Related Questions

How to get data from dataevents using REST API

1  Asked on January 28, 2021 by user87438


Scroll down is not working report

1  Asked on January 26, 2021 by dearbrother


Wave Analytics — containerId/versionId of a dataset

2  Asked on January 26, 2021 by sitansu-pradhan


Connected App packaging

0  Asked on January 25, 2021 by user85767


AMPSCRIPT: Hide HTML Form after clicking on Submit Button

1  Asked on January 25, 2021 by valarie-simmons


Field update before or after creation of an issue

0  Asked on January 23, 2021 by hermann-our


How to check multiple occurrences in the child records?

1  Asked on January 21, 2021 by mauforsalesforce


Live Agent Credit Card Question – Two Part

1  Asked on January 21, 2021 by stephanie-dorman


Ask a Question

Get help from others!

© 2023 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP