RestAssured – getting 400 code as Missing grant type

Hi all,

I am trying to generate authentication token for our application. For api automation am using restassured

In my code i have provided as below

JSONObject requestParams = new JSONObject();

requestParams.put(“grant_type”,”password”);

 

when i run this am getting response as

Status code: 400 description: Missing grant type

PS – we have the oauth server

Can someone please help me to point out what exactly the issue is?

Thanks

Sudha

 

 

Default Asked on September 6, 2018 in Selenium WebDriver.
Add Comment
  • 0 Answer(s)
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.