- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2024 07:16 PM
The vendor gave us client creds, access token, and refresh token for the integration. We have added a new oauth cred using the client credentials option but we are getting "Invalid grant_type"
Where can I store the access and refresh token and how can we refresh it every 2 hours?
Thanks,
G
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2024 07:25 PM
Hi @GB14
Access token and refresh token are stored in oauth_credential table.
you have life span of refresh token
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0791131
You can run schedule job which would run just before the Refresh token expires and regenerate the refresh token.
Mark it helpful and Accept Solution!! If this helps you to understand.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2024 07:25 PM
Hi @GB14
Access token and refresh token are stored in oauth_credential table.
you have life span of refresh token
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0791131
You can run schedule job which would run just before the Refresh token expires and regenerate the refresh token.
Mark it helpful and Accept Solution!! If this helps you to understand.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 05:13 PM
Thanks @SK Chand Basha
2nd link was a good reference. Thanks
We ended up creating some custom fields and storing the refresh token and access token to achieve it.