Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthenticationFilter ¶
func ToAuthMiddleware ¶
func ToAuthMiddleware(a Authenticator) auth.Middleware
Types ¶
type Authenticator ¶
type Authenticator interface { Authenticate(req *http.Request) (authed bool, user string, groups []string, err error) TokenFromRequest(req *http.Request) (*v3.Token, error) }
func Chain ¶
func Chain(auths ...Authenticator) Authenticator
func NewAuthenticator ¶
func NewAuthenticator(ctx context.Context, clusterRouter ClusterRouter, mgmtCtx *config.ScaledContext) Authenticator
func NewImpersonatingAuth ¶
func NewImpersonatingAuth(next Authenticator, sar sar.SubjectAccessReview) Authenticator
type ClusterRouter ¶
Click to show internal directories.
Click to hide internal directories.