Forum Discussion

cata12's avatar
cata12
Contributor
8 years ago

How to deal with "unsupported grant type" for a password field ?

Hi all,

 

I have a POSTMAN POST request which uses a application/x-www-form-urlencoded body type and returns an access token

grant_type:  password
scope: instance_123445
username: user.name
password: 123456

 

Now using ReadyAPI 2.0.1 I get a "unsupported_grant_type" error when adding the above items as request parameters and adding "application/x-www-form-urlencoded" under MediaType drop down.

 

How can I get this working ?

 

Thanks

Catalin

  • cata12's avatar
    cata12
    8 years ago

    Hi, I finally made it work. I had to enable "Post QueryString" option to send the parameters in the request body rather than sending them in the header.

  • Nastya_Khovrina's avatar
    Nastya_Khovrina
    SmartBear Alumni (Retired)

    Hello Catalin,

     

    I see that you opened a support case for this issue. Please continue working with my colleague in the corresponding case and provide us the requested details which can help us investigate the issue.

    Thanks!

    • cata12's avatar
      cata12
      Contributor

      Hi, I finally made it work. I had to enable "Post QueryString" option to send the parameters in the request body rather than sending them in the header.