Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

OAuth2 Client Credentials (Xanadu)

momeeentumus
Giga Contributor

Hi all, 

I’m working on a ServiceNow Xanadu instance and trying to set up an OAuth application using the Client Credentials grant type so an external application can authenticate to my instance. (System OAuth -> Application Registry -> Create an OAuth API endpoint for external clients)

I’ve created the OAuth API endpoint and the client record (client ID + client secret). However, when my external app tries to request a token, the instance returns:


-> Failed to get OAuth2 access token. Status code: 401 Reason: Unauthorized

I’ve double‑checked the client ID, client secret, and token URL, but the authentication still fails.

Has anyone run into this before? Are there specific settings, roles, or ACLs required for Client Credentials on a Xanadu instance that I might be missing?

Any guidance or troubleshooting steps would be appreciated.

 

0 REPLIES 0