Seeking Guidance on Automating OAuth Token Retrieval and Management in ServiceNow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2023 09:17 PM
We aim to automate this process efficiently and securely. Specifically, we're seeking advice on:
1. Automation of OAuth token retrieval: Are there recommended best practices or methods within ServiceNow to automate the retrieval of OAuth tokens?
2. Access token expiration management: What strategies or workflows can be implemented to handle the regular expiration of access tokens, ensuring seamless access without interruptions?
3. Storing tokens in the Manage Token: Is there a recommended approach for securely storing tokens within ServiceNow's Manage Token feature?
Any insights, tips, or guidance from your experiences or expertise would be immensely helpful in enhancing our token management workflow. We're eager to adopt best practices and optimize our processes.
Thank you in advance for your valuable input and suggestions!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2023 11:12 PM
unfortunately, you don't get the point and the provided article has put you into the wrong direction.
Did you see the hint "This could be run from background scripts for testing purpose" in that article? The described approach is just for testing purposes to validate the endpoint on the other is reacting as expected. But as a developer in ServiceNow you don't need to care about all the access/refresh token handling.
So again: As no one in this world wants to click every 30 minutes on a UI Action ServiceNow does everything in the background and automatically for you. Just configure a REST message, link the configured OAuth configuration and that's it!
Maik