Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrTwoFactor is returned by an Authorizer when a two factor code is // either invalid or required. ErrTwoFactor = errors.New("authorization: two factor code required or invalid") // because of invalid credentials. ErrUnauthorized = errors.New("authorization: unauthorized") )
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
Authorizer is an interface that can authorize a user.
type Fake ¶
type Fake struct{}
Fake is a fake implementation of the Authorizer interface that let's anyone in. Used in development and tests.
type MembershipError ¶
type MembershipError struct {
Organization string
}
func (*MembershipError) Error ¶
func (e *MembershipError) Error() string
Click to show internal directories.
Click to hide internal directories.