diff options
author | metamuffin <metamuffin@disroot.org> | 2025-01-17 21:38:39 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-01-17 21:38:39 +0100 |
commit | 49b615210cd1699daaf231508d59915c068dc7f8 (patch) | |
tree | f1a60b709a46047ef7616dba1fa02f7b1d31b592 /readme.md | |
parent | 455139ba2c73220da9e930838e876c59af6011f4 (diff) | |
download | gnix-49b615210cd1699daaf231508d59915c068dc7f8.tar gnix-49b615210cd1699daaf231508d59915c068dc7f8.tar.bz2 gnix-49b615210cd1699daaf231508d59915c068dc7f8.tar.zst |
gnix-auth-no-redirect
Diffstat (limited to 'readme.md')
-rw-r--r-- | readme.md | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |