Unable to redirect to login page using the status code #5615
Unanswered
shettypriy
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hello,
I want to redirect to domain.com/login based on the status code 401, something like this #5180 (comment). I tried to create a Envoy patch policy for
type.googleapis.com/envoy.extensions.filters.http.custom_response.v3.CustomResponse
, but it gives the error as unsupportedone or more objects failed to apply, reason: EnvoyPatchPolicy.gateway.envoyproxy.io "login-redirect-patch" is invalid: [spec.jsonPatches[0].type: Unsupported value: "type.googleapis.com/envoy.extensions.filters.http.custom_response.v3.CustomResponse": supported values: "type.googleapis.com/envoy.config.listener.v3.Listener", "type.googleapis.com/envoy.config.route.v3.RouteConfiguration", "type.googleapis.com/envoy.config.cluster.v3.Cluster", "type.googleapis.com/envoy.config.endpoint.v3.ClusterLoadAssignment", "type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.Secret", spec.targetRef: Required value]. Retrying attempt #2 at
Customresource envoypatchpolicies.gateway.envoyproxy.io only supports below
How can I redirect to login page based on status code
Beta Was this translation helpful? Give feedback.
All reactions