Skip to content

Commit

Permalink
Revert oauth_providers.py by removing prefix in offline_access (#1869)
Browse files Browse the repository at this point in the history
  • Loading branch information
GhimBoon authored Feb 6, 2025
1 parent dd4beb5 commit 2c7ae66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/chainlit/oauth_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def __init__(self):
self.authorize_params = {
"tenant": os.environ.get("OAUTH_AZURE_AD_TENANT_ID"),
"response_type": "code",
"scope": "https://graph.microsoft.com/User.Read https://graph.microsoft.com/offline_access",
"scope": "https://graph.microsoft.com/User.Read offline_access",
"response_mode": "query",
}

Expand Down Expand Up @@ -275,7 +275,7 @@ def __init__(self):
self.authorize_params = {
"tenant": os.environ.get("OAUTH_AZURE_AD_HYBRID_TENANT_ID"),
"response_type": "code id_token",
"scope": "https://graph.microsoft.com/User.Read https://graph.microsoft.com/openid https://graph.microsoft.com/offline_access",
"scope": "https://graph.microsoft.com/User.Read https://graph.microsoft.com/openid offline_access",
"response_mode": "form_post",
"nonce": nonce,
}
Expand Down

0 comments on commit 2c7ae66

Please sign in to comment.