@@ -20,7 +20,7 @@ server {
21 # If the auth_request denies the request (401), redirect to the sign_in page
21 # If the auth_request denies the request (401), redirect to the sign_in page
22 # and include the final rd URL back to the user's original request.
22 # and include the final rd URL back to the user's original request.
23− error_page 401 = http://oauth2-proxy.oauth2-proxy.localhost/oauth2/sign_in?rd=$scheme://$host$request_uri;
23+ error_page 401 =403 http://oauth2-proxy.oauth2-proxy.localhost/oauth2/sign_in?rd=$scheme://$host$request_uri;
25 # Alternatively send the request to `start` to skip the provider button
25 # Alternatively send the request to `start` to skip the provider button
26 # error_page 401 = http://oauth2-proxy.oauth2-proxy.localhost/oauth2/start?rd=$scheme://$host$request_uri;
26 # error_page 401 = http://oauth2-proxy.oauth2-proxy.localhost/oauth2/start?rd=$scheme://$host$request_uri;
@@ -54,7 +54,7 @@ server {
55 # If the auth_request denies the request (401), redirect to the sign_in page
55 # If the auth_request denies the request (401), redirect to the sign_in page
56 # and include the final rd URL back to the user's original request.
56 # and include the final rd URL back to the user's original request.
57− error_page 401 = http://oauth2-proxy.oauth2-proxy.localhost/oauth2/sign_in?rd=$scheme://$host$request_uri;
57+ error_page 401 =403 http://oauth2-proxy.oauth2-proxy.localhost/oauth2/sign_in?rd=$scheme://$host$request_uri;
59 # Alternatively send the request to `start` to skip the provider button
59 # Alternatively send the request to `start` to skip the provider button
60 # error_page 401 = http://oauth2-proxy.oauth2-proxy.localhost/oauth2/start?rd=$scheme://$host$request_uri;
60 # error_page 401 = http://oauth2-proxy.oauth2-proxy.localhost/oauth2/start?rd=$scheme://$host$request_uri;