How to use GlideOAuthClient to get access token from Azure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2024 01:09 PM
Hello,
We have enabled SSO with Azure AD as a result users who are in Azure Ad can SSO to login to ServiceNow.
Now, we need to call another API from ServiceNow. The API expects Azure OAuth token.
I am struggling for any good example which can show how to obtain this token so that we can pass it to another API.
I am considering to use Application Registry and then use GlideOAuthClientRequest to request token, however, I am not getting any good example (even the official documentation is not enough around it).
but the author didn't provide much details ( I am new to ServiceNow).
Can someone who have acquire OAuth token from Azure please share the steps?
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2024 10:39 AM
Hi I am having the same issue please if you figured out let me know. my current login with AZURE AD is SAML All I need to get JWT access token from logged in user in order to use it with other APIs.