group

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupAdder

type GroupAdder struct {
	Authenticator authenticator.Request
	Groups        []string
}

GroupAdder wraps a request authenticator, and adds the specified groups to the returned user when authentication succeeds

func NewGroupAdder

func NewGroupAdder(auth authenticator.Request, groups []string) *GroupAdder

func (*GroupAdder) AuthenticateRequest

func (g *GroupAdder) AuthenticateRequest(req *http.Request) (user.Info, bool, error)

Jump to

Keyboard shortcuts

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