Skip to content

Commit 5c216a7

Browse files
committed
use ctx.add_auth_provider to register an auth provider
1 parent 21949ad commit 5c216a7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

llms/extensions/github_auth/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def __init__(self, app):
7171

7272
# Adding an Auth Provider forces Authentication to be enabled
7373
auth_provider = GitHubAuthProvider(g_app)
74-
g_app.auth_providers.append(auth_provider)
74+
ctx.add_auth_provider(auth_provider)
7575

7676
# OAuth handlers
7777
async def github_auth_handler(request):

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)