Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMutatorNotEnabled = herodot.DefaultError{ ErrorField: "mutator matching this route is misconfigured or disabled", CodeField: http.StatusInternalServerError, StatusField: http.StatusText(http.StatusInternalServerError), }
Functions ¶
This section is empty.
Types ¶
type CredentialsIDTokenConfig ¶
type CredentialsIDTokenConfig struct {
Audience []string `json:"aud"`
}
type MutatorBroken ¶
type MutatorBroken struct {
// contains filtered or unexported fields
}
func NewMutatorBroken ¶
func NewMutatorBroken(enabled bool) *MutatorBroken
func (*MutatorBroken) GetID ¶
func (a *MutatorBroken) GetID() string
func (*MutatorBroken) Mutate ¶
func (a *MutatorBroken) Mutate(r *http.Request, session *authn.AuthenticationSession, config json.RawMessage, _ pipeline.Rule) (http.Header, error)
func (*MutatorBroken) Validate ¶
func (a *MutatorBroken) Validate() error
type MutatorCookie ¶
type MutatorCookie struct {
// contains filtered or unexported fields
}
func NewMutatorCookie ¶
func NewMutatorCookie(c configuration.Provider) *MutatorCookie
func (*MutatorCookie) GetID ¶
func (a *MutatorCookie) GetID() string
func (*MutatorCookie) Mutate ¶
func (a *MutatorCookie) Mutate(r *http.Request, session *authn.AuthenticationSession, config json.RawMessage, rl pipeline.Rule) (http.Header, error)
func (*MutatorCookie) Validate ¶
func (a *MutatorCookie) Validate() error
func (*MutatorCookie) WithCache ¶
func (a *MutatorCookie) WithCache(t *template.Template)
type MutatorHeader ¶
type MutatorHeader struct {
// contains filtered or unexported fields
}
func NewMutatorHeader ¶
func NewMutatorHeader(c configuration.Provider) *MutatorHeader
func (*MutatorHeader) GetID ¶
func (a *MutatorHeader) GetID() string
func (*MutatorHeader) Mutate ¶
func (a *MutatorHeader) Mutate(r *http.Request, session *authn.AuthenticationSession, config json.RawMessage, rl pipeline.Rule) (http.Header, error)
func (*MutatorHeader) Validate ¶
func (a *MutatorHeader) Validate() error
func (*MutatorHeader) WithCache ¶
func (a *MutatorHeader) WithCache(t *template.Template)
type MutatorHeaderConfig ¶
type MutatorIDToken ¶
type MutatorIDToken struct {
// contains filtered or unexported fields
}
func NewMutatorIDToken ¶
func NewMutatorIDToken(c configuration.Provider, r MutatorIDTokenRegistry) *MutatorIDToken
func (*MutatorIDToken) GetID ¶
func (a *MutatorIDToken) GetID() string
func (*MutatorIDToken) Mutate ¶
func (a *MutatorIDToken) Mutate(r *http.Request, session *authn.AuthenticationSession, config json.RawMessage, _ pipeline.Rule) (http.Header, error)
func (*MutatorIDToken) Validate ¶
func (a *MutatorIDToken) Validate() error
type MutatorIDTokenRegistry ¶
type MutatorIDTokenRegistry interface { credentials.SignerRegistry }
type MutatorNoop ¶
type MutatorNoop struct {
// contains filtered or unexported fields
}
func NewMutatorNoop ¶
func NewMutatorNoop(c configuration.Provider) *MutatorNoop
func (*MutatorNoop) GetID ¶
func (a *MutatorNoop) GetID() string
func (*MutatorNoop) Mutate ¶
func (a *MutatorNoop) Mutate(r *http.Request, session *authn.AuthenticationSession, config json.RawMessage, _ pipeline.Rule) (http.Header, error)
func (*MutatorNoop) Validate ¶
func (a *MutatorNoop) Validate() error
Click to show internal directories.
Click to hide internal directories.