From 49b615210cd1699daaf231508d59915c068dc7f8 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 17 Jan 2025 21:38:39 +0100 Subject: gnix-auth-no-redirect --- readme.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'readme.md') diff --git a/readme.md b/readme.md index 8ba9c1a..8a4fee1 100644 --- a/readme.md +++ b/readme.md @@ -167,8 +167,9 @@ themselves; in that case the request is passed on. gnix and can therefore be used by applications. Alternatively a login may be implemented by returning the `gnix-auth-success` header with a username as the value from the `fail` handler, which is handled like a sucessful login - for that user. This method can be useful for implementing custom login logic - like OTP login or a CAPTCHA. + for that user. If `gnix-auth-no-redirect` is set the response of the `fail` + handler is passed instead of a redirect being sent. This method can be + useful for implementing custom login logic like OTP login or a CAPTCHA. - `users`: list of valid logins (credentials) - `expire`: seconds before logins expire; not setting this option keeps the login valid forever on the server but cleared after the session on the -- cgit v1.2.3-70-g09d2