From c2ceceea6e2934754f910d1e25c307ae36b0e179 Mon Sep 17 00:00:00 2001 From: phot0n Date: Fri, 13 Jan 2023 17:17:17 +0530 Subject: [PATCH] fix: use OAUTHLIB_RELAX_TOKEN_SCOPE for ignoring scope change without this we get an error regarding the mismatch of scopes from microsoft --- frappe/integrations/doctype/connected_app/connected_app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frappe/integrations/doctype/connected_app/connected_app.py b/frappe/integrations/doctype/connected_app/connected_app.py index ca9677d4da..4137e6b85b 100644 --- a/frappe/integrations/doctype/connected_app/connected_app.py +++ b/frappe/integrations/doctype/connected_app/connected_app.py @@ -14,6 +14,8 @@ if any((os.getenv("CI"), frappe.conf.developer_mode, frappe.conf.allow_tests)): # Disable mandatory TLS in developer mode and tests os.environ["OAUTHLIB_INSECURE_TRANSPORT"] = "1" +os.environ["OAUTHLIB_RELAX_TOKEN_SCOPE"] = "1" + class ConnectedApp(Document): """Connect to a remote oAuth Server. Retrieve and store user's access token