unsupported_grant_type "grant type not supported"

Cornelia
Kilo Contributor

I'm trying to get an authorization token from Salesforce.  Keep getting this response when I test; {"error":"unsupported_grant_type","error_description":"grant type not supported"}

I've changed the grant_type to authorization_code but still get the same error.

Any help is greatly appreciated.

Here is my configuration:

find_real_file.png

find_real_file.png

Select the Test link at the bottom of the above page

Response to the test

find_real_file.png

find_real_file.png

 

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

It seems the grant_type you are sending from ServiceNow is not recognized by Salesforce

Did you try generating the token using "Get OAuth Token" link

please check these links; they should help you

https://community.servicenow.com/community?id=community_question&sys_id=75f74f2ddb1cdbc01dcaf3231f96...

https://intellipaat.com/community/3638/how-can-i-use-the-granttype-password-oauth-flow-with-salesfor...

https://salesforce.stackexchange.com/questions/172980/errorunsupported-grant-type-error-descriptiong...

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur, 

Thank you for responding.

I was able to manually "Get OAuth Token", but am still getting the 'unsupported grant type' response.

I read the 3 links you provided.  Unfortunately, they we not helpful ☹.

I wonder if the issue is in Salesforce?  Any ideas are appreciated.

Best Regards,  Cornelia

Hi,

I could see in the screenshot you are setting grant_type as password

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader