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)
Click to show internal directories.
Click to hide internal directories.