Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator interface{}
func New ¶
func New(driver, source string) (Authenticator, error)
type Error ¶
type Error struct { // Internal error cause. This will not be revealed to the user. InternalErr error // Message which can safely be sent to the user without compromising // security. ExternalMsg string }
Error is an authentication error.
type PlainAuthenticator ¶
type PlainAuthenticator interface {
AuthPlain(ctx context.Context, db database.Database, username, password string) error
}
func NewInternal ¶
func NewInternal() PlainAuthenticator
Click to show internal directories.
Click to hide internal directories.