Documentation ¶
Index ¶
- Variables
- func NewErrAuthorizerMisconfigured(a Authorizer, err error) *herodot.DefaultError
- func NewErrAuthorizerNotEnabled(a Authorizer) *herodot.DefaultError
- type Authorizer
- type AuthorizerAllow
- type AuthorizerDeny
- type AuthorizerKetoEngineACPORY
- func (a *AuthorizerKetoEngineACPORY) Authorize(r *http.Request, session *authn.AuthenticationSession, config json.RawMessage, ...) error
- func (a *AuthorizerKetoEngineACPORY) Config(config json.RawMessage) (*AuthorizerKetoEngineACPORYConfiguration, error)
- func (a *AuthorizerKetoEngineACPORY) GetID() string
- func (a *AuthorizerKetoEngineACPORY) ParseSubject(session *authn.AuthenticationSession, templateId, templateString string) (string, error)
- func (a *AuthorizerKetoEngineACPORY) Validate(config json.RawMessage) error
- func (a *AuthorizerKetoEngineACPORY) WithContextCreator(f authorizerKetoWardenContext)
- type AuthorizerKetoEngineACPORYConfiguration
- type AuthorizerKetoEngineACPORYRequestBody
- type Registry
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAuthorizerNotEnabled = herodot.DefaultError{ ErrorField: "authorizer matching this route is misconfigured or disabled", CodeField: http.StatusInternalServerError, StatusField: http.StatusText(http.StatusInternalServerError), }
Functions ¶
func NewErrAuthorizerMisconfigured ¶
func NewErrAuthorizerMisconfigured(a Authorizer, err error) *herodot.DefaultError
func NewErrAuthorizerNotEnabled ¶
func NewErrAuthorizerNotEnabled(a Authorizer) *herodot.DefaultError
Types ¶
type Authorizer ¶
type Authorizer interface { Authorize(r *http.Request, session *authn.AuthenticationSession, config json.RawMessage, rule pipeline.Rule) error GetID() string Validate(config json.RawMessage) error }
type AuthorizerAllow ¶
type AuthorizerAllow struct {
// contains filtered or unexported fields
}
func NewAuthorizerAllow ¶
func NewAuthorizerAllow(c configuration.Provider) *AuthorizerAllow
func (*AuthorizerAllow) Authorize ¶
func (a *AuthorizerAllow) Authorize(r *http.Request, session *authn.AuthenticationSession, config json.RawMessage, _ pipeline.Rule) error
func (*AuthorizerAllow) GetID ¶
func (a *AuthorizerAllow) GetID() string
func (*AuthorizerAllow) Validate ¶
func (a *AuthorizerAllow) Validate(config json.RawMessage) error
type AuthorizerDeny ¶
type AuthorizerDeny struct {
// contains filtered or unexported fields
}
func NewAuthorizerDeny ¶
func NewAuthorizerDeny(c configuration.Provider) *AuthorizerDeny
func (*AuthorizerDeny) Authorize ¶
func (a *AuthorizerDeny) Authorize(r *http.Request, session *authn.AuthenticationSession, config json.RawMessage, _ pipeline.Rule) error
func (*AuthorizerDeny) GetID ¶
func (a *AuthorizerDeny) GetID() string
func (*AuthorizerDeny) Validate ¶
func (a *AuthorizerDeny) Validate(config json.RawMessage) error
type AuthorizerKetoEngineACPORY ¶
type AuthorizerKetoEngineACPORY struct {
// contains filtered or unexported fields
}
func NewAuthorizerKetoEngineACPORY ¶
func NewAuthorizerKetoEngineACPORY(c configuration.Provider) *AuthorizerKetoEngineACPORY
func (*AuthorizerKetoEngineACPORY) Authorize ¶
func (a *AuthorizerKetoEngineACPORY) Authorize(r *http.Request, session *authn.AuthenticationSession, config json.RawMessage, rule pipeline.Rule) error
func (*AuthorizerKetoEngineACPORY) Config ¶
func (a *AuthorizerKetoEngineACPORY) Config(config json.RawMessage) (*AuthorizerKetoEngineACPORYConfiguration, error)
func (*AuthorizerKetoEngineACPORY) GetID ¶
func (a *AuthorizerKetoEngineACPORY) GetID() string
func (*AuthorizerKetoEngineACPORY) ParseSubject ¶
func (a *AuthorizerKetoEngineACPORY) ParseSubject(session *authn.AuthenticationSession, templateId, templateString string) (string, error)
func (*AuthorizerKetoEngineACPORY) Validate ¶
func (a *AuthorizerKetoEngineACPORY) Validate(config json.RawMessage) error
func (*AuthorizerKetoEngineACPORY) WithContextCreator ¶
func (a *AuthorizerKetoEngineACPORY) WithContextCreator(f authorizerKetoWardenContext)
Click to show internal directories.
Click to hide internal directories.