auth

package
v1.5.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator interface {
	// Authenticate the request, if there is no error, the bool value
	// determines whether the request is authenticated or not
	Authenticate(req *http.Request) (bool, error)
}

Authenticator defines Authenticate function to authenticate requests

func NewSecretAuthenticator

func NewSecretAuthenticator(secrets map[string]string) Authenticator

NewSecretAuthenticator returns an instance of secretAuthenticator

Jump to

Keyboard shortcuts

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