auth

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2017 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConnector

type AuthConnector interface {
	Authenticate(next http.Handler) http.Handler
	RetrieveUserID(r http.Request) string
}

Interface for authentication that connectors implement

type AuthenticatorMiddleware

type AuthenticatorMiddleware struct {
	// contains filtered or unexported fields
}

Authenticator middleware system, with connector and basic admin authentication

func NewAuthenticatorMiddleware

func NewAuthenticatorMiddleware(connector AuthConnector, adminUser string, adminPassword string) *AuthenticatorMiddleware

NewAuthenticator returns a configured AuthenticatorMiddleware with associated connector

func (*AuthenticatorMiddleware) Action

func (*AuthenticatorMiddleware) GetInfo

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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