Documentation ¶
Index ¶
Constants ¶
View Source
const BackendName = "simple"
BackendName name
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Simple ¶
type Simple struct { UseBcrypt bool `json:"use_bcrypt,omitempty"` Credentials map[string]string `json:"credentials,omitempty"` }
Simple is the simplest backend for authentication, a name:password map
func NewDriver ¶
func NewDriver() *Simple
NewDriver returns a new instance of Simple with some defaults
func (Simple) Authenticate ¶
Authenticate fulfils the backend interface
Click to show internal directories.
Click to hide internal directories.