Documentation ¶
Index ¶
- func CreateEgressOKResponse(jwtConfig *wirepact.JWTConfig, userID string, headersToRemove []string) (*auth.CheckResponse, error)
- func CreateForbiddenResponse(reason string) *auth.CheckResponse
- func CreateIngressOKResponse(headersToAdd []*core.HeaderValue, headersToRemove []string) *auth.CheckResponse
- func CreateNoopOKResponse() *auth.CheckResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEgressOKResponse ¶
func CreateEgressOKResponse(jwtConfig *wirepact.JWTConfig, userID string, headersToRemove []string) (*auth.CheckResponse, error)
CreateEgressOKResponse creates an outbound OK response by encoding the given userID with the given jwtConfig and then returning an auth result that adds the WirePact JWT header.
func CreateForbiddenResponse ¶
func CreateForbiddenResponse(reason string) *auth.CheckResponse
CreateForbiddenResponse creates a forbidden response for the up/downstream with the given reason.
func CreateIngressOKResponse ¶
func CreateIngressOKResponse(headersToAdd []*core.HeaderValue, headersToRemove []string) *auth.CheckResponse
CreateIngressOKResponse creates an outbound OK response by encoding the given userID with the given jwtConfig and then returning an auth result that adds the WirePact JWT header.
func CreateNoopOKResponse ¶
func CreateNoopOKResponse() *auth.CheckResponse
CreateNoopOKResponse creates a NOOP response for envoy (meaning that no headers are modified or removed).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.