Documentation ¶
Overview ¶
Package authservice defines a Macaroon-based authentication service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthService ¶
type AuthService struct { httpservice.HTTPService KeyPair *bakery.KeyPair Checker credentials.Checker MacaroonValidity time.Duration // contains filtered or unexported fields }
AuthService is an HTTP service for authentication using macaroons.
func NewAuthService ¶
func NewAuthService(listenAddr string, logger *log.Logger, keyPair *bakery.KeyPair, macaroonValidity time.Duration) *AuthService
NewAuthService returns an AuthService.
Click to show internal directories.
Click to hide internal directories.