How to get "Get OAuth Token" using script instead of manual click
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 09:09 AM
Hi,
I am currently working on integrating with the Google Cloud Storage API and have encountered a manual step in obtaining the OAuth token through the "Get OAuth Token" process.
I am seeking guidance on automating this token retrieval instead of relying on manual clicks. While I have successfully authorized it manually, the need to click on the OAuth credential form for updates is cumbersome. I have set up the App provider, entity, and scope for the integration.
Upon research, I found that some have queried the OAuth credential table directly by passing the profile ID. However, I am unsure if this table consistently maintains an updated key.
If anyone has experience with automating the OAuth token retrieval process for Google Cloud Storage API integration and can provide comprehensive details on where to place the script and how to invoke it, I would greatly appreciate the assistance.
Looking forward to your insights and guidance on this matter.
Thanks,
Venkat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2024 02:10 AM
Please refer below posts :
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0791131
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0823628
Thanks & Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2024 02:47 PM
Dear Amit,
Thank you for sharing these articles. Unfortunately, none of the solutions worked for the issue at hand.
Appreciate your assistance.
Thanks,
Venkat