Skip OAuth registration for sx docs app

sx is a public documentation site like test — no auth needed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-02 21:31:32 +00:00
parent 03196c3ad0
commit 8b2785ccb0

View File

@@ -145,8 +145,8 @@ def create_base_app(
errors(app)
# Auto-register OAuth client blueprint for non-account apps
# (account is the OAuth authorization server; test is a public dashboard)
_NO_OAUTH = {"account", "test"}
# (account is the OAuth authorization server; test/sx are public dashboards)
_NO_OAUTH = {"account", "test", "sx"}
if name not in _NO_OAUTH:
from shared.infrastructure.oauth import create_oauth_blueprint
app.register_blueprint(create_oauth_blueprint(name))