The CreatorCon Call for Content is officially open! Get started here.

Unable to fetch Oauth Token

aragarw
Tera Contributor

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.

7 REPLIES 7

Anand Kumar P
Giga Patron

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.

AnandKumarP_1-1729765974969.png

 

AnandKumarP_0-1729765916677.png

 

Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand

 

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

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

 

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