Rest assured – Any sequence needs to be followed with rest assured request (auth,header,parameters,URI)

Rest assured – Any sequence needs to be followed with rest assured request (auth,header,parameters,URI)

We are automating Rest services that needs authetication:

Sample Request is here :
given().contentType(ContentType.JSON).auth().preemptive().basic(“*”, ““).header(“Authorization”,”Basic ***”).parameters(parameterList).when().get(“/authorize”).then().extract().header(“Location”)

And getting below error :
http://staging.popshops.com/auth-callback?error=invalid_request&error_description=The+request+is+missing+a+required+parameter%2C+includes+an+invalid+parameter+value%2C+includes+a+parameter+more+than+once%2C+or+is+otherwise+malformed&state=2400bc12-f47c-4a9e-b7b2-f14f0cc5970c

Any suggestions or inputsis highly appreciated
Thanks in advance