Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticater ¶
type Authenticater interface { Authenticate(types.Context) (bool, *contracts.Error) Authorize(types.Context, ...interface{}) (bool, *contracts.Error) GetUserInfo(types.Context) checks.UserInfo Permissions(types.Context, ...interface{}) (map[string][]string, error) }
Authenticater defines interface for auth
func BasicAuth ¶
func BasicAuth(ctr *contracts.BasicAuthCredentials) Authenticater
BasicAuth authenticator function for http request
func GetAuthenticator ¶
Click to show internal directories.
Click to hide internal directories.