From 2c7ae66291106fb0e50177241835bbe7c0133efd Mon Sep 17 00:00:00 2001 From: "Lim, Ghim Boon" Date: Fri, 7 Feb 2025 01:33:37 +0800 Subject: [PATCH] Revert oauth_providers.py by removing prefix in offline_access (#1869) --- backend/chainlit/oauth_providers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/chainlit/oauth_providers.py b/backend/chainlit/oauth_providers.py index 05eb34128d..8054b2716f 100644 --- a/backend/chainlit/oauth_providers.py +++ b/backend/chainlit/oauth_providers.py @@ -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", } @@ -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, }