OAuth 2 - Grant Type: Client Credentials

Rick Mann
Tera Expert

I'm working on a project to integrate our ServiceNow instance with the new version of Dell's TechDirect API.  The integration requires OAuth 2.0 to get an access token for the API.  I'm able to successfully setup and retrieve the token with Postman using the Grant Type of Client Credentials.

This is from the attached Dell OAuth 2.0 Spec Guide

3.2 Postman Tutorial
1. Select Authorization Type as “OAuth 2.0”
2. Click “Get New Access Token”
3. Grant Type – Client Credentials
4. Access Token URL - https://apigtwb2c.us.dell.com/auth/oauth/v2/token

If I try to do this same setup in ServiceNow and retrieve the OAuth Token, I receive the error "Unsupported OAuth grant type 'Client Credentials'"

find_real_file.png

Any assistance is helpful.

Rick

2 REPLIES 2

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi Rick,

In OAuth Provider settings, change the Default Grant type field value to Resource Owner Password Credentials instead of Client Credentials.

If all other fields (Client ID, Client Secret, Token URL) are set correctly, you should be able to generate the token and see OAuth token flow completed successfully message when you supply correct Username and Password.

 

find_real_file.png

Hope this can help you to solve your issue!

If I have answered your question, please mark my response as correct and/or helpful.

Thank you very much

Cheers
Alberto

Thank Alberto

I set the Default Grant type to Resource Owner Password Credentials, but I'm not prompted to supply a username and password.

Should I be prompted for credentials when I click Get OAuth Token in the GET method?  I receive the message:  Unsupported OAuth grant type 'Resource Owner Password Credentials'.

 

find_real_file.png

 

find_real_file.png