Refresh Token - 401 - Error

alexshani
Tera Contributor

Hi everyone, I'm trying to use the refresh token and I get a 401 error. { ' access_denied' }

I'm sending a POST request with 

"Content-type": "application/x-www-form-urlencoded"

and

{ grant_type: 'refresh_token' , client_id, client_secret, refresh_token }

The error is not so informative and I don't know what I'm doing wrong

 

please help

6 REPLIES 6

Hi, unfortunately the information available in this thread does not allow for proper diagnosis.
If you do not have access to the credentials table in your instance then I think the most appropriate next step is to escalate to your internal ServiceNow Admin team, so that they can investigate\diagnose the issue

alexshani
Tera Contributor

Thanks for the response, yes I'm doing a post request to /oauth_token.do and I feel that every third request is failing. I feel that the refresh token is expired but I set it to be non-expired when configured app settings.

 

 what can be the reason of access_denied? I don't need any Authorization header?