Documentation ¶
Overview ¶
Package basic implements a simple auth provider and backend that identifies a user via username & password combination.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements the auth.IdentityProvider interface.
func NewProvider ¶
NewProvider creates a new Provider with the associated config.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store can create new user/pass links and validate a username and password. bcrypt is used for password storage & verification.
func NewStore ¶
NewStore creates a new DB. Error is returned if the prepared statements fail to register.
Click to show internal directories.
Click to hide internal directories.