1
0
mirror of https://github.com/falk-werner/webfuse synced 2026-10-16 16:41:02 +00:00

add in-protocol authentication mechanism

This commit is contained in:
Falk Werner
2023-01-22 20:53:50 +01:00
parent 9423d75021
commit 5db3b28b5a
18 changed files with 147 additions and 19 deletions

View File

@@ -1,12 +1,21 @@
# Authentication
Webfuse supports token-based authentication using HTTP headers. To activate authentication, two command line option needs to be given:
Webfuse supports two authentications mechanisms:
- token-based authentication using HTTP headers
- in-protocol authentication
To activate authentication, two command line option needs to be given:
- `--wf-authenticator PATH`
allows to specify an executable used for authentication
- `--wf-auth-header HEADER`
- `--wf-auth-header HEADER` _(optional)_
allows to specify the HTTP header used for authentication
When `--wf-auth-header` is not specifiend or the header is not contained
in the HTTP request, the in-protocol solutions is used: Before any other
operation, the credentials are queried via `getcreds`request.
## Authenticator
An authenticator is an executable or script used for token-based