Pass OAuth details in a header
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2022 12:44 PM
Currently i am using POSTMAN to "Get Access Token" and then use that token to call an API of ServiceNow
I want to pass all the details in a single GET call in the header and get the response. Is it possible?
-Priyanka
Labels:
- Labels:
-
Integrations
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2022 07:37 PM
Hi, to get a token from a ServiceNow instance using Postman or any REST integration tool\method,
you must POST (not GET) to <instancename>\oauth_token.do
your parameters need to be passed in the message body, not in the header.
Key Value
grant_type 'password'
client_id
client_secret
username
password