Sumedh Kharode1
Kilo Expert

Hi Team,

I am getting the  error while accessing Oauth access token from servicenow instance as below

{"error_description":"access_denied","error":"server_error"}

I have created OAuth End Point on another instance having below client_id and client_secret

URL = https://customer_instance.service-now.com/oauth_token.do

client_id = 0fa6dade7b000110abfbf53e56d948ff

client_secret = ]Uvyq{wfz`

Content-type = application/x-www-form-urlencoded

grant_type = password

with username & password

 

I checked the username and password by using /login.do and it's working so I think my password is correct

 

Please do the needful

Have you resolved this issue? I'm in the same boat now I'm doing an ajax call its working from post man but not from my custom website where I'm doing an ajax call. Any help?

Developer Admin
Kilo Contributor

having same problem as guy above ^

ashwryadj
Tera Expert

Are you trying with Admin role ? only Admins can get the Oauth Token 

jeffreyluto
Tera Contributor

How long does the refresh token last if you are creating an intergration?