auth

package
v0.0.0-...-8f9ebe2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2019 License: MIT Imports: 5 Imported by: 0

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

BasicAuth authenticator function for http request

func GetAuthenticator

func GetAuthenticator(c echo.Context, supportedAuths map[string]struct{}) (Authenticater, *contracts.Error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL