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.

 

1 REPLY 1

Diogo Ramos
Giga Sage

Hello, do you have the property glide.oauth.inbound.client.credential.grant_type.enabled  set to true ? 

Have you added an oAuth aapplication user to your registry ? (field might not be visible in the form), check via the list. 

Review on this article if you have followed all the steps correctly : Up Your OAuth2.0 Game: Inbound Client Credentials ... - ServiceNow Community

I hope this helps !