1
0
mirror of https://github.com/falk-werner/webfuse synced 2024-10-27 20:34:10 +00:00
falk-werner_webfuse/doc/authentication.md

35 lines
1.2 KiB
Markdown
Raw Normal View History

2023-01-15 20:00:10 +00:00
# Authentication
Webfuse supports two authentications mechanisms:
- token-based authentication using HTTP headers
- in-protocol authentication
2023-02-01 17:38:40 +00:00
To activate authentication, two command line option can be specified:
2023-01-15 20:00:10 +00:00
- `--wf-authenticator PATH`
allows to specify an executable used for authentication
- `--wf-auth-header HEADER` _(optional)_
2023-01-15 20:00:10 +00:00
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.
2023-01-15 20:00:10 +00:00
## Authenticator
An authenticator is an executable or script used for token-based
authentication. Credentials are passed to the authenticator via `stdin`.
2023-01-15 20:00:10 +00:00
## Header restrictions
Note that not any HTTP header can be specified using `--wf-auth-header`
option. The following headers are supported:
- `X-Auth-Token`
- `Authorization`
In addition to that, any non-standard header can be specified.
Due to implementation limitation, most standard headers can not be used by now. Please let us know, when you intend to use a header that is not supported yet. Please create an issue in that case.