Where should I store an authentication token for a custom integration?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2022 02:40 PM
Context: I am building a custom spoke to integrate my company’s ServiceNow instance with an external private API.
Problem: After using stored credentials to retrieve an authentication token, I need to store this token to be sent with all REST actions. I can’t seem to find a good place to store this. Once it inevitably expires, I will also need to update this value.
Thanks in advance!
- Labels:
-
IntegrationHub

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2022 03:00 PM
Hi,
They can be stored in the OAuth Credentials table (oauth_credential).
Similar discuss here: https://community.servicenow.com/community?id=community_question&sys_id=222562a5dbc7845023f4a345ca96...
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!