Trouble getting OAuth token in REST Message?

mdjoseph12
Giga Contributor

when accessing token from POSTMAN, the token appears in the response. But it appears servicenow is looking for the parameter 'access_token' (OAuth flow failed. Verify the configurations and try again. Error detail:invalid_request, Missing parameters: access_token). Is it possible to have servicenow look at the parameter 'token' instead of 'access_token'? 

13 REPLIES 13

I think I got the root cause of this issue. I will keep posted once I have confirmed and found the solution.

Did you ever confirm the root cause? If so, what was it?

Hi Ryan,

 

Yes, I found out that by default ServiceNow sends a POST method(NOT GET) to get the token from the OAuth provider. Please ask the token provider to configure the method with POST method instead of GET method.

 

Regards,

Amrit Sharma

 

Please mark the answer as helpful, in case it resolved your issue, which in turn will help others facing the same issue.

Phonsie Hevey1
Tera Expert

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0754270 may help with this.