oAuth Token available but REST message display "OAuth Access or Refresh tokens are not available"

Karthick Nagara
Tera Expert

Hi All,

 

I have Third-party oAuth Configured for accessing external data through REST API

 

I'm able to fetch the token for the credential using Grant type=Password.I used the third-party API username and password to fetch the token.

 

Credentials has a message displayed as below,

 

OAuth Refresh token is available but will expire soon at <one month from now>. Verify the OAuth configuration and click the 'Get OAuth Token' link below to request a new token.

 

But the REST Outbound Message where the oAuth credential is mapped, display the below warning message and GET method fails with 401 error invalid username/password combo

 

OAuth Access or Refresh tokens are not available. Verify the OAuth configuration and click the 'Get OAuth Token' link below to request a new token.

 

All app registry configurations are intact and as per the instructions given by oAuth provider.

 

Any idea why its failing?

3 REPLIES 3

Sukraj Raikhraj
Kilo Sage

Here is a similar issue report for OAuth token. see if it helps: 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1116908

Thanks Sukraj!
I tried this but still facing the same issue.

Karthick Nagara
Tera Expert

I got this fixed. There was a oAuth 2.0 Credential record with the same OAuth profile mapped, where I was refreshing token using "Get OAuth Token" .

 

I had to click the "Get OAuth Token" on the REST MESSAGE itself to have the token mapped to HTTP Methods.