nginx-auth-request-module
nginx-auth-request-module copied to clipboard
Add 407 / custom body
Currently it seems that auth_request does not allow to have a custom body returned to the client. There is a quick solution for that by allowing an additional HTTP Status code and having the according config in nginx conf:
error_page 407 /custom-login
This can be very useful to bring out a custom form for logging in. If you do not like to have 407 here then please choose another code for that or implement at least something return the body.
It really simplifies having custom logins or error messages for this authentication. Several great features can be allowed by doing so like SSO or many more via an own interface.
how it works?