OAuth access denied when trying to create a token

liamreid
Tera Contributor

I am trying to generate a token so I can make API requests to ServiceNow from my application. However when I do the request in Postman i get 
```

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

```

(using a washington developer instance)

I have registered my app in OAuth application registry.

liamreid_0-1737038619740.png

 

And this is the request I would like to make (ideally without the user details).

liamreid_1-1737038721523.png

(I have no other headers or auth configured for this request)

Something I did observe was that when I made a request using basic auth (same admin username and password) it would store some cookies. The cookies allowed me to make requests to OAuth and generate the keys, and also make GET requests to the Table API.

 

liamreid_3-1737038983404.png

 

0 REPLIES 0