From 86adcc6c9e6cc2e715b953b98c37f48f03ad3cb6 Mon Sep 17 00:00:00 2001 From: Ahmad Srour Date: Wed, 30 Sep 2026 10:55:20 -0400 Subject: [PATCH] docs: fix nginx API 401 example (#3549) Signed-off-by: Ahmad Srour --- docs/docs/configuration/integrations/nginx.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/docs/configuration/integrations/nginx.md b/docs/docs/configuration/integrations/nginx.md index 126800a6..06d9654c 100644 --- a/docs/docs/configuration/integrations/nginx.md +++ b/docs/docs/configuration/integrations/nginx.md @@ -155,12 +155,11 @@ location @oauth2_signin { #### API / Machine routes (no redirect) -For API endpoints where clients expect a 401/403 status code (not a redirect): +For API endpoints where clients expect a 401/403 status code (not a redirect), reuse the same `auth_request` header forwarding configuration from the main example as needed for your backend: ```nginx location /api/ { auth_request /oauth2/auth; - error_page 401 =401; # Pass through the 401 status proxy_pass http://backend/; } ```