Unable to fetch Oauth Token
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2024 03:25 AM
I am trying to 'Get Oauth token' after setting up an oauth registry in ServiceNow. I have provided all details like client id, client secret, etc. Getting erroe when trying to get token:
OAuth flow failed. Verify the configurations and try again. Error detail:failed to request a token.
Mid Server being used is up and running. Proxy is configured in mid server config.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2024 03:34 AM
Hi @aragarw ,
First test in POSTMAN with Access token url, client ID. client secret, username, password like below if you get the token then try it in your flow.
Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2024 03:38 AM
Hello,
Thanks for response. I can't test in postman, its not setup for us. Also I have tested that using curl commands on host that using these credentials I am able to fetch the token.
Regards,
Arushi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2024 03:49 AM
Hi @aragarw ,
Check the correct Access token url you are using or not.
Postman is opensource just you can install it form chrome and test.
Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2024 03:53 AM
I have to use mid server to send request. So postman wont work. I manually generated access_token and passed it into a background script which sends API request using mid server with the bearer token I generated. So that way its working, now I want to generate that token from ServiceNow instance instead of doing that manually.
Regards,
Arushi