From 3c3122f44940edfc03cf3da0eccf193c6bb09f56 Mon Sep 17 00:00:00 2001 From: SmartManoj Date: Sun, 29 Mar 2020 03:16:55 +0530 Subject: [PATCH] Update google.py --- google.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/google.py b/google.py index 2310b66..be90b3a 100644 --- a/google.py +++ b/google.py @@ -6,7 +6,11 @@ app.secret_key = os.environ.get("FLASK_SECRET_KEY", "supersekrit") app.config["GOOGLE_OAUTH_CLIENT_ID"] = os.environ.get("GOOGLE_OAUTH_CLIENT_ID") app.config["GOOGLE_OAUTH_CLIENT_SECRET"] = os.environ.get("GOOGLE_OAUTH_CLIENT_SECRET") -google_bp = make_google_blueprint(scope=["profile", "email"]) +google_bp = make_google_blueprint(scope=[ + "openid", + "https://www.googleapis.com/auth/userinfo.email", + "https://www.googleapis.com/auth/userinfo.profile", + ]) app.register_blueprint(google_bp, url_prefix="/login") @app.route("/")