Skip OAuth/auth for test service (public dashboard)
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m50s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m50s
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -125,8 +125,9 @@ def create_base_app(
|
|||||||
errors(app)
|
errors(app)
|
||||||
|
|
||||||
# Auto-register OAuth client blueprint for non-account apps
|
# Auto-register OAuth client blueprint for non-account apps
|
||||||
# (account is the OAuth authorization server)
|
# (account is the OAuth authorization server; test is a public dashboard)
|
||||||
if name != "account":
|
_NO_OAUTH = {"account", "test"}
|
||||||
|
if name not in _NO_OAUTH:
|
||||||
from shared.infrastructure.oauth import create_oauth_blueprint
|
from shared.infrastructure.oauth import create_oauth_blueprint
|
||||||
app.register_blueprint(create_oauth_blueprint(name))
|
app.register_blueprint(create_oauth_blueprint(name))
|
||||||
|
|
||||||
@@ -173,7 +174,7 @@ def create_base_app(
|
|||||||
|
|
||||||
# Auth state check via grant verification + silent OAuth handshake
|
# Auth state check via grant verification + silent OAuth handshake
|
||||||
# MUST run before _load_user so stale sessions are cleared first
|
# MUST run before _load_user so stale sessions are cleared first
|
||||||
if name != "account":
|
if name not in _NO_OAUTH:
|
||||||
@app.before_request
|
@app.before_request
|
||||||
async def _check_auth_state():
|
async def _check_auth_state():
|
||||||
from quart import session as qs
|
from quart import session as qs
|
||||||
|
|||||||
Reference in New Issue
Block a user