From c8433d6d4be324c7ab2330e63349440b0b7ba814 Mon Sep 17 00:00:00 2001 From: Lee Gough Date: Fri, 17 Feb 2023 16:36:04 +0000 Subject: [PATCH] Update app.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://www.rfc-editor.org/rfc/rfc6749#section-3.3 OAuth library reference:

https://github.com/oauthlib/oauthlib/blob/564d526fdbdc32a936e4b5ddac186c26024f626b/oauthlib/oauth2/rfc6749/parameters.py#L466 Setting this variable indicates to Google to return different OAuth scopes than requested; Google is known to do this sometimes. IBM utilise this flag in OneDrive StoredIQ in production server instances. Reference: https://www.ibm.com/support/pages/system/files/inline-files/$FILE/IBMSIQAdministratorAdminGuide76018.pdf --- app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app.py b/app.py index a36a158..8435324 100644 --- a/app.py +++ b/app.py @@ -42,6 +42,7 @@ app = Flask(__name__) app.config.from_object("default_settings") app.config.from_pyfile("config.py", silent=True) +os.environ['OAUTHLIB_RELAX_TOKEN_SCOPE'] = '1' if app.config["ENV"] != "production": # allow oauth2 loop to run over http (used for local testing only)