Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add refresh token support for Azure AD OAuth provider #1599

Merged
merged 12 commits into from
Jan 27, 2025
Merged
Prev Previous commit
Next Next commit
Add 'offline_access' scope to enable refresh token support.
  • Loading branch information
SigveSjovold committed Dec 20, 2024
commit 534da724e4431ec3bc9f3e8565690aae5e5e0eff
2 changes: 1 addition & 1 deletion 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",
"scope": "https://graph.microsoft.com/User.Read offline_access",
"response_mode": "query",
}

Expand Down