Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
type Authorizer struct {
// contains filtered or unexported fields
}
Authorizer provides OpenAPI based authorization middleware.
func NewAuthorizer ¶
func NewAuthorizer(client client.Client, namespace string, options *identityclient.Options) *Authorizer
NewAuthorizer returns a new authorizer with required parameters.
func (*Authorizer) Authorize ¶
func (a *Authorizer) Authorize(authentication *openapi3filter.AuthenticationInput) (string, *userinfo.UserInfo, error)
Authorize checks the request against the OpenAPI security scheme.
Click to show internal directories.
Click to hide internal directories.