Documentation ¶
Index ¶
- func ConvertTKEAttributes(ctx context.Context, attr authorizer.Attributes) authorizer.Attributes
- func UnprotectedAuthorized(attributes authorizer.Attributes) authorizer.Decision
- func WithTKEAuthorization(handler http.Handler, a authorizer.Authorizer, s runtime.NegotiatedSerializer, ...) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertTKEAttributes ¶
func ConvertTKEAttributes(ctx context.Context, attr authorizer.Attributes) authorizer.Attributes
ConvertTKEAttributes converts attributes parsed by apiserver compatible with casbin enforcer
func UnprotectedAuthorized ¶
func UnprotectedAuthorized(attributes authorizer.Attributes) authorizer.Decision
UnprotectedAuthorized checks a request attribute has privileged to pass authorization.
func WithTKEAuthorization ¶
func WithTKEAuthorization(handler http.Handler, a authorizer.Authorizer, s runtime.NegotiatedSerializer, ignoreAuthPathPrefixes []string) http.Handler
WithTKEAuthorization passes all tke-auth authorized requests on to handler, and returns a forbidden error otherwise.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.