Skip to content

Commit 30c6800

Browse files
committed
chore: restore server comment after merge
Signed-off-by: Sumanth Kamenani <skamenan@redhat.com>
1 parent 8038d54 commit 30c6800

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/ogx/core/server/server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ def create_app() -> StackApp:
311311
if config.server.auth:
312312
# Add route authorization middleware if route_policy is configured
313313
# This can work independently of authentication
314+
# NOTE: Add this FIRST because middleware wraps in reverse order (last added runs first)
314315
# We want: Request → Auth → RouteAuth → App
315316
if config.server.auth.route_policy:
316317
logger.info("Enabling route-level authorization", rule_count=len(config.server.auth.route_policy))

0 commit comments

Comments
 (0)