Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalAuthenticator ¶
type LocalAuthenticator struct {
// contains filtered or unexported fields
}
LocalAuthenticator implements simple token-based auth
func NewLocalAuthenticator ¶
func NewLocalAuthenticator(sessionPath, adminEmail, adminPassword string) *LocalAuthenticator
NewLocalAuthenticator creates a new local authenticator If sessionPath is provided, sessions are persisted to disk
func (*LocalAuthenticator) Authenticate ¶
func (a *LocalAuthenticator) Authenticate(token string) (*api.User, error)
Authenticate validates a token and returns the user
func (*LocalAuthenticator) Logout ¶
func (a *LocalAuthenticator) Logout(token string) error
Logout invalidates a token
func (*LocalAuthenticator) Shutdown ¶ added in v0.0.2
func (a *LocalAuthenticator) Shutdown()
Shutdown gracefully stops the authenticator
Click to show internal directories.
Click to hide internal directories.