get access token through "Connect to a third party OAuth Provider"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2024 06:23 AM
Hi, i am trying to connect to servicenow api by a third party OAuth Providor.
i want to use Azure as the third party.
i have created a new application in azure and i have the client ID and client secret.
i worked by this link: https://docs.servicenow.com/bundle/sandiego-application-development/page/administer/integrationhub-s...
i registered a new application registry, add the client id and client secret from azure, in the Authorization URL/Token URL/Redirect URL i worked just like it said.
then in postman i call a get with this link:
https://login.microsoftonline.com/<Directory ID>/oauth2/v2.0/token
in the body i insert the client id, secret grant type is client_credentials
and scope is my servicenow instance.
i get back a access token but when i try to use it to get data from servicenow i get this error: