mirror of
https://github.com/rclone/rclone.git
synced 2025-08-09 05:54:43 +02:00
http: add client certificate user auth middleware
This populates the authenticated user from the client certificate common name. Also added tests for the existing client certificate functionality.
This commit is contained in:
committed by
Nick Craig-Wood
parent
7751d5a00b
commit
1cfed18aa7
@ -19,6 +19,10 @@ By default this will serve files without needing a login.
|
||||
You can either use an htpasswd file which can take lots of users, or
|
||||
set a single username and password with the ` + "`--{{ .Prefix }}user` and `--{{ .Prefix }}pass`" + ` flags.
|
||||
|
||||
If no static users are configured by either of the above methods, and client
|
||||
certificates are required by the ` + "`--client-ca`" + ` flag passed to the server, the
|
||||
client certificate common name will be considered as the username.
|
||||
|
||||
Use ` + "`--{{ .Prefix }}htpasswd /path/to/htpasswd`" + ` to provide an htpasswd file. This is
|
||||
in standard apache format and supports MD5, SHA1 and BCrypt for basic
|
||||
authentication. Bcrypt is recommended.
|
||||
|
Reference in New Issue
Block a user