apiserver: k8s.io/apiserver/pkg/authentication/group Index | Files

package group

import "k8s.io/apiserver/pkg/authentication/group"

Index

Package Files

authenticated_group_adder.go group_adder.go token_group_adder.go

func NewAuthenticatedGroupAdder Uses

func NewAuthenticatedGroupAdder(auth authenticator.Request) authenticator.Request

NewAuthenticatedGroupAdder wraps a request authenticator, and adds the system:authenticated group when appropriate. Authentication must succeed, the user must not be system:anonymous, the groups system:authenticated or system:unauthenticated must not be present

func NewGroupAdder Uses

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

func NewTokenGroupAdder Uses

func NewTokenGroupAdder(auth authenticator.Token, groups []string) authenticator.Token

NewTokenGroupAdder wraps a token authenticator, and adds the specified groups to the returned user when authentication succeeds

type AuthenticatedGroupAdder Uses

type AuthenticatedGroupAdder struct {
    // Authenticator is delegated to make the authentication decision
    Authenticator authenticator.Request
}

AuthenticatedGroupAdder adds system:authenticated group when appropriate

func (*AuthenticatedGroupAdder) AuthenticateRequest Uses

func (g *AuthenticatedGroupAdder) AuthenticateRequest(req *http.Request) (*authenticator.Response, bool, error)

type GroupAdder Uses

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 Uses

func (g *GroupAdder) AuthenticateRequest(req *http.Request) (*authenticator.Response, bool, error)

type TokenGroupAdder Uses

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

TokenGroupAdder adds groups to an authenticated user.Info

func (*TokenGroupAdder) AuthenticateToken Uses

func (g *TokenGroupAdder) AuthenticateToken(ctx context.Context, token string) (*authenticator.Response, bool, error)

Package group imports 4 packages (graph) and is imported by 76 packages. Updated 2018-11-16. Refresh now. Tools for package owners.