Refactor Basic Authentication package

This change refactors the basic authentication implementation to better follow
Go coding standards. Many types are no longer exported. The parser is now a
separate function from the authentication code. The standard functions
(*http.Request).BasicAuth/SetBasicAuth are now used where appropriate.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
Stephen J Day 2015-06-08 18:56:48 -07:00
parent abd142855a
commit ffe56ebe41
4 changed files with 142 additions and 138 deletions

View file

@ -26,10 +26,6 @@ storage:
maintenance:
uploadpurging:
enabled: false
auth:
basic:
realm: test-realm
path: /tmp/registry-dev/.htpasswd
http:
addr: :5000
secret: asecretforlocaldevelopment