There was an error while loading. Please reload this page.
1 parent 8038d54 commit 30c6800Copy full SHA for 30c6800
1 file changed
src/ogx/core/server/server.py
@@ -311,6 +311,7 @@ def create_app() -> StackApp:
311
if config.server.auth:
312
# Add route authorization middleware if route_policy is configured
313
# This can work independently of authentication
314
+ # NOTE: Add this FIRST because middleware wraps in reverse order (last added runs first)
315
# We want: Request → Auth → RouteAuth → App
316
if config.server.auth.route_policy:
317
logger.info("Enabling route-level authorization", rule_count=len(config.server.auth.route_policy))
0 commit comments