Quick doc updates
This commit is contained in:
parent
bbdad0432e
commit
69fd700039
1
AUTHORS
1
AUTHORS
|
@ -23,6 +23,7 @@ Soren Hansen
|
||||||
Paul Jimenez
|
Paul Jimenez
|
||||||
Brian K. Jones
|
Brian K. Jones
|
||||||
Ed Leafe
|
Ed Leafe
|
||||||
|
Pablo Llopis
|
||||||
Stephen Milton
|
Stephen Milton
|
||||||
Russ Nelson
|
Russ Nelson
|
||||||
Colin Nicholson
|
Colin Nicholson
|
||||||
|
|
|
@ -34,7 +34,7 @@ objects contain a JSON dictionary of the format::
|
||||||
The `<auth_type>` specifies how the user key is encoded. The default is `plaintext`,
|
The `<auth_type>` specifies how the user key is encoded. The default is `plaintext`,
|
||||||
which saves the user's key in plaintext in the `<auth_value>` field.
|
which saves the user's key in plaintext in the `<auth_value>` field.
|
||||||
The value `sha1` is supported as well, which stores the user's key as a salted
|
The value `sha1` is supported as well, which stores the user's key as a salted
|
||||||
SHA1 hash. The `<auth_type>` can be specified in the swauth section of the proxy server's
|
SHA1 hash. Note that using a one-way hash like SHA1 will likely inhibit future use of key-signing request types, assuming such support is added. The `<auth_type>` can be specified in the swauth section of the proxy server's
|
||||||
config file, along with the salt value in the following way::
|
config file, along with the salt value in the following way::
|
||||||
|
|
||||||
auth_type = <auth_type>
|
auth_type = <auth_type>
|
||||||
|
|
|
@ -41,7 +41,15 @@ use = egg:swauth#swauth
|
||||||
# useful when a load balancer url should be used by users, but swauth itself is
|
# useful when a load balancer url should be used by users, but swauth itself is
|
||||||
# behind the load balancer. Example:
|
# behind the load balancer. Example:
|
||||||
# default_swift_cluster = local#https://public.com:8080/v1#http://private.com:8080/v1
|
# default_swift_cluster = local#https://public.com:8080/v1#http://private.com:8080/v1
|
||||||
|
# Number of seconds a newly issued token should be valid for.
|
||||||
# token_life = 86400
|
# token_life = 86400
|
||||||
|
# Specifies how the user key is stored. The default is 'plaintext', leaving the
|
||||||
|
# key unsecured but available for key-signing features if such are ever added.
|
||||||
|
# An alternative is 'sha1' which stores only a one-way hash of the key leaving
|
||||||
|
# it secure but unavailable for key-signing.
|
||||||
|
# auth_type = plaintext
|
||||||
|
# Used if the auth_type is sha1 or another method that can make use of a salt.
|
||||||
|
# auth_type_salt = swauthsalt
|
||||||
# Highly recommended to change this. If you comment this out, the Swauth
|
# Highly recommended to change this. If you comment this out, the Swauth
|
||||||
# administration features will be disabled for this proxy.
|
# administration features will be disabled for this proxy.
|
||||||
super_admin_key = swauthkey
|
super_admin_key = swauthkey
|
||||||
|
|
|
@ -19,7 +19,7 @@ This module hosts available auth types for encoding and matching user keys.
|
||||||
For adding a new auth type, simply write a class that satisfies the following
|
For adding a new auth type, simply write a class that satisfies the following
|
||||||
conditions:
|
conditions:
|
||||||
|
|
||||||
- For the class name, apitalize first letter only. This makes sure the user
|
- For the class name, capitalize first letter only. This makes sure the user
|
||||||
can specify an all-lowercase config option such as "plaintext" or "sha1".
|
can specify an all-lowercase config option such as "plaintext" or "sha1".
|
||||||
Swauth takes care of capitalizing the first letter before instantiating it.
|
Swauth takes care of capitalizing the first letter before instantiating it.
|
||||||
- Write an encode(key) method that will take a single argument, the user's key,
|
- Write an encode(key) method that will take a single argument, the user's key,
|
||||||
|
|
Loading…
Reference in New Issue