group

package
v1.5.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGroupAdder

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

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

Types

type GroupAdder

type GroupAdder struct {
	// Authenticator is delegated to make the authentication decision
	Authenticator authenticator.Request
	// Groups are additional groups to add to the user.Info from a successful authentication
	Groups []string
}

GroupAdder adds groups to an authenticated user.Info

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