Oauth error

Jagen Chinnapul
Tera Contributor

Hi All, 

I am getting below error which trying to to get refresh token through Oauth for 3rd party.

 

OAuth flow failed. Verify the configurations and try again. Error detail:invalid_request, Missing parameters: access_token

2 REPLIES 2

Tanushree Maiti
Tera Patron

Hi @Jagen Chinnapul 

 

  • Verify your Token URL in the Application Registry record
  • Ensure the Grant Type (e.g., authorization_code, client_credentials) matches what the external provider supports for that specific API.
  • If using authorization_code, ensure the Redirect URL in ServiceNow matches the one registered in the third-party application exactly.

Share your oauth profile screen shot hiding sensitive info.

 

williamjohn
Kilo Contributor

Hello,

This error usually happens when your OAuth refresh token request is incorrect, most commonly because the request is missing required parameters like refresh_token, is being sent to the wrong endpoint, or is using the wrong format such as JSON instead of application/x-www-form-urlencoded; you should ensure you are calling the correct token endpoint and sending grant_type=refresh_token along with the valid refresh_token (and client credentials if required) in the proper form-encoded body.