diff options
author | Simo Sorce <simo@redhat.com> | 2015-03-23 15:41:35 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2015-03-23 15:41:35 -0400 |
commit | f134e09fa91fd1e00f538ef3e403ff6a35d21e8e (patch) | |
tree | d67a655a3eeb43cd362b5955494b70b048b59dfc /custodia.conf | |
parent | 26fbab88d505c8e9cd1aded7cdea85775ce635c8 (diff) | |
download | custodia-f134e09fa91fd1e00f538ef3e403ff6a35d21e8e.tar.gz custodia-f134e09fa91fd1e00f538ef3e403ff6a35d21e8e.tar.xz custodia-f134e09fa91fd1e00f538ef3e403ff6a35d21e8e.zip |
Add simple header auth module
This is useful when authentication is handled by a proxy sitting in
front of custodia.
Alternatively it can be used with shared secrets/bearer tokens sent
in plain text in the headers.
Diffstat (limited to 'custodia.conf')
-rw-r--r-- | custodia.conf | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/custodia.conf b/custodia.conf index 78a0d26..296ab6d 100644 --- a/custodia.conf +++ b/custodia.conf @@ -1,10 +1,15 @@ [global] server_version = "Secret/0.0.7" -[auth:simple] -handler = custodia.http.authenticators.SimpleCredsAuth -uid = 48 -gid = 48 +#[auth:simple] +#handler = custodia.http.authenticators.SimpleCredsAuth +#uid = 48 +#gid = 48 + +[auth:header] +handler = custodia.http.authenticators.SimpleHeaderAuth +name = REMOTE_USER +value = simo [/] handler = custodia.root.Root |