Add multiple user auth to docs

This commit is contained in:
Kyle Hornberg 2016-07-01 15:23:36 -05:00
parent 568f901ace
commit c79dd18ef6
2 changed files with 6 additions and 2 deletions

View File

@ -95,6 +95,9 @@ For legacy python versions, use ``pypiserver-1.1.x`` series.
is not necessary, but `~/.pypirc` still need username and password fields,
even if bogus.
By default, only 'update' is password-protected.
Multiple users can be given multiple actions. Use a dictionary of lists to define
the actions allowed for each user.
-P foo/htpasswd.txt -a {'user1': ['update'], 'user2': ['download', 'list']}
-P, --passwords PASSWORD_FILE
use apache htpasswd file PASSWORD_FILE to set usernames & passwords when
@ -382,8 +385,6 @@ https://github.com/dexterous/pypiserver-on-the-cloud contains
instructions on how to run *pypiserver* on one of the supported cloud
service providers.
Recipes
=======

View File

@ -59,6 +59,9 @@ def usage():
is not necessary, but `~/.pypirc` still need username and password fields,
even if bogus.
By default, only 'update' is password-protected.
Multiple users can be given multiple actions. Use a dictionary of lists to define
the actions allowed for each user.
-P foo/htpasswd.txt -a {'user1': ['update'], 'user2': ['download', 'list']}
-P, --passwords PASSWORD_FILE
use apache htpasswd file PASSWORD_FILE to set usernames & passwords when