OAuth2 Client Credentials (Xanadu)

momeeentumus
Tera 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.

 

5 REPLIES 5

momeeentumus
Tera Contributor

Hi, 

I've double-checked everything one more time. 
I added an oAuth application user to my registry, created glide.oauth.inbound.client.credential.grant_type.enabled property, set it to true.
But, I cant see Grant Type field in my OAuth entity profilem there is no such field there.

Unfortunately, I am still getting the same issue.