package htpasswd

import "github.com/docker/distribution/registry/auth/htpasswd"

Package htpasswd provides a simple authentication scheme that checks for the user credential hash in an htpasswd formatted file in a configuration-determined location.

This authentication method MUST be used under TLS, as simple token-replay attack is possible.

Index

Variables

var (
	// ErrInvalidCredential is returned when the auth token does not authenticate correctly.
	ErrInvalidCredential = errors.New("invalid authorization credential")

	// ErrAuthenticationFailure returned when authentication failure to be presented to agent.
	ErrAuthenticationFailure = errors.New("authentication failured")
)

Source Files

access.go htpasswd.go

Version
v2.2.1+incompatible
Published
Dec 9, 2015
Platform
js/wasm
Imports
10 packages
Last checked
1 day ago

Tools for package owners.