Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Authenticator ¶
type Authenticators ¶
type Authenticators []Authenticator
func (Authenticators) Authenticate ¶
func (as Authenticators) Authenticate(email, password string) (bool, error)
Tries the contained authenticators with the given credentials. If an authenticator returns an error, we continue with the next one. The last error is returned.
func (Authenticators) Available ¶
func (as Authenticators) Available() bool
type SASLPlain ¶
type SASLPlain struct {
Socket string
}
Authenticates against an unix socket which receivers a SASL PLAIN request and returns "authenticated" if authentication was successful.
func (SASLPlain) Authenticate ¶
Click to show internal directories.
Click to hide internal directories.