Reputation: 135
I'm trying to get my simple OAuth flow to work using the curl commands, for authorization i'm trying the below curl, it's ending up in 400 and the reson is below. Trying this: curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -d "response_type=code&client_id=TestClient&redirect_uri=https://example.test.com/test" https://openam.example.com/auth/oauth2/authorize
Result: "FAILED","400","{""reason"":""The request could not be understood by the server due to malformed syntax""}","2","MILLISECONDS","OAuth","/"
Any help is appreciated.
Thanks
Upvotes: 0
Views: 757
Reputation: 2744
You have to use HTTP GET instead of HTTP POST , please see https://www.rfc-editor.org/rfc/rfc6749#section-4.1.1
Upvotes: 1