uafrica / oauth-server

OAuth Server
Other
51 stars 51 forks source link

Issue with post #67

Closed Langstonius closed 6 years ago

Langstonius commented 6 years ago

Hello, I am working with an aws application and im running into an issue specifically with post.

Long story short, I dont want the token in the url now that ive gotten the system working. However, when switching to using the POST mechanism, I repeatedly get the error {"error":"invalid_request","message":"The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. Check the \"access token\" parameter."}

I have checked via curl and google oauth playground and it seems there is an issue with the post only. It works fine oddly when going through the process to obtain a refresh token.

Any ideas on where I should look to solve this issue?

Langstonius commented 6 years ago

And not 8 hours later i find the problem

SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 needed to be added to my .htaccess as the Authorization header was being stripped by apache. HTH someone else