Skip to main content
shantanuj524835
Participating Frequently
Feb 13, 2025 4:40 PM UTC
Question

OAuth2.0 Password Grant Type

Hi,

I am trying to connect a 3rd party system which uses OAuth 2.0 Password Grant Type authentication, as it is not supported by Appian connected System. I have created a separate integration object to get the access code where I am passing below fields in request body.

"client_id": {client id} ,
"client_secret": {client secret},
"username": {username},
"password": {password},
"grant_type": "password"

Getting this error  "error":"invalid_request","error_description":"The grant type was not specified in the request".

I tried creating token using POSTMAN and there it was working fine. Attaching screenshot for both.

POSTMAN Response:

Appian Integration Response:

 

2 replies

stefanhelzle0001
Brainy
Feb 13, 2025 6:07 PM UTC

Not sure what the problem is, but that additional content type header does not look right.

shantanuj524835
Participating Frequently
Feb 14, 2025 5:33 AM UTC

Hi Stefan, 

The error message changed to {"error":"unsupported_grant_type","error_description":"Grant type \"ntent-Type: application/x-www-form-urlencoded; charset=UTF-8\r\nContent-Transfer-Encoding: 8bit\r\n\r\npassword\" not supported"}" after removing additional header.