OAuth 2 - Grant Type: Client Credentials
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2019 06:15 AM
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'"
Any assistance is helpful.
Rick
- Labels:
-
Integrations
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2019 06:19 AM
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.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2019 07:42 AM
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'.