nginx-auth-request-module icon indicating copy to clipboard operation
nginx-auth-request-module copied to clipboard

Add 407 / custom body

Open ScreamingDev opened this issue 9 years ago • 1 comments

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.

ScreamingDev avatar Jan 22 '17 03:01 ScreamingDev

how it works?

ryangsun avatar Jul 30 '19 14:07 ryangsun