Help us shape the future of Go! Take the 2026 Go Developer Survey

group

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2015 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