Add basic authentication (#1683)
* Add basic authentication Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
This commit is contained in:
parent
b42819b69d
commit
202ecf9c9d
37 changed files with 5132 additions and 52 deletions
5
https/testdata/tls_config_auth_user_list_invalid.bad.yml
vendored
Normal file
5
https/testdata/tls_config_auth_user_list_invalid.bad.yml
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
tls_config :
|
||||
cert_file : "testdata/server.crt"
|
||||
key_file : "testdata/server.key"
|
||||
basic_auth_users:
|
||||
john: doe
|
||||
2
https/testdata/tls_config_junk_key.yml
vendored
Normal file
2
https/testdata/tls_config_junk_key.yml
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
tls_config :
|
||||
cert_filse: "testdata/server.crt"
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
tls_config :
|
||||
cert_file : ""
|
||||
key_file : ""
|
||||
key_file : ""
|
||||
client_auth_type: "x"
|
||||
|
|
|
|||
8
https/testdata/tls_config_users.good.yml
vendored
Normal file
8
https/testdata/tls_config_users.good.yml
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
tls_config :
|
||||
cert_file : "testdata/server.crt"
|
||||
key_file : "testdata/server.key"
|
||||
basic_auth_users:
|
||||
alice: $2y$12$1DpfPeqF9HzHJt.EWswy1exHluGfbhnn3yXhR7Xes6m3WJqFg0Wby
|
||||
bob: $2y$18$4VeFDzXIoPHKnKTU3O3GH.N.vZu06CVqczYZ8WvfzrddFU6tGqjR.
|
||||
carol: $2y$10$qRTBuFoULoYNA7AQ/F3ck.trZBPyjV64.oA4ZsSBCIWvXuvQlQTuu
|
||||
dave: $2y$10$2UXri9cIDdgeKjBo4Rlpx.U3ZLDV8X1IxKmsfOvhcM5oXQt/mLmXq
|
||||
5
https/testdata/tls_config_users_noTLS.good.yml
vendored
Normal file
5
https/testdata/tls_config_users_noTLS.good.yml
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
basic_auth_users:
|
||||
alice: $2y$12$1DpfPeqF9HzHJt.EWswy1exHluGfbhnn3yXhR7Xes6m3WJqFg0Wby
|
||||
bob: $2y$18$4VeFDzXIoPHKnKTU3O3GH.N.vZu06CVqczYZ8WvfzrddFU6tGqjR.
|
||||
carol: $2y$10$qRTBuFoULoYNA7AQ/F3ck.trZBPyjV64.oA4ZsSBCIWvXuvQlQTuu
|
||||
dave: $2y$10$2UXri9cIDdgeKjBo4Rlpx.U3ZLDV8X1IxKmsfOvhcM5oXQt/mLmXq
|
||||
Loading…
Add table
Add a link
Reference in a new issue