Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
func New ¶
func New(configuration Configuration) (*Authenticator, error)
func (*Authenticator) Authenticate ¶
func (a *Authenticator) Authenticate(request *http.Request) (Principal, error)
func (*Authenticator) Middleware ¶
func (a *Authenticator) Middleware(next http.Handler) http.Handler
type Configuration ¶
type Credentials ¶
func LoadCredentials ¶
func LoadCredentials(path string) (Credentials, error)
type Permission ¶
type Permission string
const ( Read Permission = "read" Write Permission = "write" )
Click to show internal directories.
Click to hide internal directories.