aboutsummaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-01-17 21:38:39 +0100
committermetamuffin <metamuffin@disroot.org>2025-01-17 21:38:39 +0100
commit49b615210cd1699daaf231508d59915c068dc7f8 (patch)
treef1a60b709a46047ef7616dba1fa02f7b1d31b592 /readme.md
parent455139ba2c73220da9e930838e876c59af6011f4 (diff)
downloadgnix-49b615210cd1699daaf231508d59915c068dc7f8.tar
gnix-49b615210cd1699daaf231508d59915c068dc7f8.tar.bz2
gnix-49b615210cd1699daaf231508d59915c068dc7f8.tar.zst
gnix-auth-no-redirect
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md5
1 files changed, 3 insertions, 2 deletions
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