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.
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
1 Asked on January 29, 2021 by j-0
2 Asked on January 28, 2021 by samdev
excel javascript lightning lightning aura components lightning experience
1 Asked on January 28, 2021 by user87438
1 Asked on January 28, 2021 by javanoob
1 Asked on January 27, 2021 by shira-freed
1 Asked on January 27, 2021 by shobhit-saxena
0 Asked on January 26, 2021 by ifabiodlc
1 Asked on January 26, 2021 by dearbrother
2 Asked on January 26, 2021 by sitansu-pradhan
1 Asked on January 25, 2021 by user2957592
4 Asked on January 25, 2021 by kd7iwp
1 Asked on January 25, 2021 by valarie-simmons
0 Asked on January 24, 2021 by khushi
1 Asked on January 24, 2021 by walker
2 Asked on January 24, 2021 by zufra
0 Asked on January 23, 2021 by hermann-our
1 Asked on January 23, 2021 by alex-xiong
lightning design system lightning experience lightning web components popover slds
1 Asked on January 21, 2021 by mauforsalesforce
Get help from others!
Recent Answers
Recent Questions
© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP