flask-oauth icon indicating copy to clipboard operation
flask-oauth copied to clipboard

Using post method for google oauth2.0 requires args in body

Open FreakTheMighty opened this issue 13 years ago • 1 comments

I'm not sure if google's implementation is non-standard, but I've found that to get the access_token I need to use a "POST" instead of a command. However simply setting access_token_method to "POST" is not sufficient because "handle_oauth2_response" puts the remote_args into the url instead of the body.

This may require a separate ticket, but google also expects an additional argument "grant_type" which needs to be set to "authorization_code".

FreakTheMighty avatar Mar 12 '12 06:03 FreakTheMighty

Method is now configurable via access_token_method. For adding params, there is a pull request here:

https://github.com/mitsuhiko/flask-oauth/pull/21

jaimeirurzun avatar May 14 '12 15:05 jaimeirurzun