fix: use OAUTHLIB_RELAX_TOKEN_SCOPE for ignoring scope change

without this we get an error regarding the mismatch of scopes from microsoft
This commit is contained in:
phot0n 2023-01-13 17:17:17 +05:30
parent 481d72c0ae
commit c2ceceea6e

View file

@ -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