From 58454fc7a963843c648425424875b996ec9204d9 Mon Sep 17 00:00:00 2001 From: NamPNQ Date: Sun, 7 Sep 2014 12:24:18 +0700 Subject: [PATCH 1/2] Update google.py Fix Required parameter is missing: response_type --- flask_social/providers/google.py | 1 + 1 file changed, 1 insertion(+) diff --git a/flask_social/providers/google.py b/flask_social/providers/google.py index 1d13321..24544d6 100644 --- a/flask_social/providers/google.py +++ b/flask_social/providers/google.py @@ -26,6 +26,7 @@ 'request_token_url': None, 'access_token_method': 'POST', 'request_token_params': { + 'response_type': 'code', 'scope': 'https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/plus.me' #add ' https://www.googleapis.com/auth/userinfo.email' to scope to also get email } From 3e4e7357ea9d98fe720fc8ff6d141bd793bdbf39 Mon Sep 17 00:00:00 2001 From: NamPNQ Date: Sun, 7 Sep 2014 12:29:35 +0700 Subject: [PATCH 2/2] Update google.py Fix grant_type --- flask_social/providers/google.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flask_social/providers/google.py b/flask_social/providers/google.py index 24544d6..a563ba3 100644 --- a/flask_social/providers/google.py +++ b/flask_social/providers/google.py @@ -25,6 +25,9 @@ 'access_token_url': 'https://accounts.google.com/o/oauth2/token', 'request_token_url': None, 'access_token_method': 'POST', + 'access_token_params': { + 'grant_type': 'authorization_code' + }, 'request_token_params': { 'response_type': 'code', 'scope': 'https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/plus.me'