unionrequest

package
v0.3.2-0.ose Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUnionAuthentication

func NewUnionAuthentication(authRequestHandlers ...authenticator.Request) authenticator.Request

NewUnionAuthentication returns a request authenticator that validates credentials using a chain of authenticator.Request objects

Types

type Authenticator

type Authenticator struct {
	Handlers    []authenticator.Request
	FailOnError bool
}

func (*Authenticator) AuthenticateRequest

func (authHandler *Authenticator) AuthenticateRequest(req *http.Request) (user.Info, bool, error)

AuthenticateRequest authenticates the request using a chain of authenticator.Request objects. The first success returns that identity. Errors are only returned if no matches are found.

Jump to

Keyboard shortcuts

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