- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2022 01:13 PM
Does anyone know how to automate the rotation of API Key used for credentials?
Solved! Go to Solution.
- Labels:
-
Orchestration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-14-2022 01:17 PM
Apologies for not reading correctly,
If there is no OOB functionality to auto update your sys_alias record, then you should be able to use Glide.
If the key is renewed within a token renewal payload?
I would think it possible to use 'OAuthUtil' script extension to manage population of your updated key via 'postprocessAccessToken'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2022 03:29 PM
Hi, I utilize a scheduled job to renew token(s) which is set to repeat based on the tokens lifespan.
Then underpin this with an ECC queue retry policy that updates the token and the ECC payloads auth details if the ECC failure is auth related.
This works fine for an integration that is on a fixed schedule\cycle,
but an integration that is real-time\ad-hoc would require some additional control to ensure a 'race' condition was not entered via multiple messages.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-14-2022 05:10 AM
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-14-2022 10:36 AM
How did you do the refresh, basically do a gliderecord update in the api key credential table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-14-2022 12:27 PM
Hi, you do not need to directly query\alter the credentials table, as a token renewal will update the oauth credentials as part of its functionality.
Some guidance from SNC
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0823628