Skip to content

Commit 2c7ae66

Browse files
authored
Revert oauth_providers.py by removing prefix in offline_access (#1869)
1 parent dd4beb5 commit 2c7ae66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/chainlit/oauth_providers.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def __init__(self):
183183
self.authorize_params = {
184184
"tenant": os.environ.get("OAUTH_AZURE_AD_TENANT_ID"),
185185
"response_type": "code",
186-
"scope": "https://graph.microsoft.com/User.Read https://graph.microsoft.com/offline_access",
186+
"scope": "https://graph.microsoft.com/User.Read offline_access",
187187
"response_mode": "query",
188188
}
189189

@@ -275,7 +275,7 @@ def __init__(self):
275275
self.authorize_params = {
276276
"tenant": os.environ.get("OAUTH_AZURE_AD_HYBRID_TENANT_ID"),
277277
"response_type": "code id_token",
278-
"scope": "https://graph.microsoft.com/User.Read https://graph.microsoft.com/openid https://graph.microsoft.com/offline_access",
278+
"scope": "https://graph.microsoft.com/User.Read https://graph.microsoft.com/openid offline_access",
279279
"response_mode": "form_post",
280280
"nonce": nonce,
281281
}

0 commit comments

Comments
 (0)