Timeline for Custom auth provider - how to get a new access token without a refresh token
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 8, 2021 at 12:54 | answer | added | Jayant Jaiswal | timeline score: 2 | |
Dec 7, 2021 at 5:53 | comment | added | identigral | Custom code is better. | |
Dec 7, 2021 at 5:42 | comment | added | Jayant Jaiswal | @identigral - The only downside is that currently Access_Token expires in 1 hour. But let's say if I get that extended to a week/month. Is it a good solution to initiate Authentication flow of Named Credential ever week/month in order to keep things running? Or should I build a custom apex code to fetch the access token itself? | |
Dec 6, 2021 at 19:12 | comment | added | identigral | You'd have to reinitialize the auth provider underneath NC to restart the token acquisition sequence without the refresh token. One option: when token expires, manually delete NC and recreate it. (Do not delete or touch Auth Provider). There might be a less intrusive way to kick off a reinit...caveat emptor. | |
Dec 6, 2021 at 15:13 | history | edited | identigral | CC BY-SA 4.0 |
deleted 76 characters in body; edited tags
|
Dec 6, 2021 at 14:24 | history | asked | Jayant Jaiswal | CC BY-SA 4.0 |