Where should I store an authentication token for a custom integration?

HedgeHodge
Tera Contributor

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!

1 REPLY 1

Allen Andreas
Administrator
Administrator

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!