mirror of https://github.com/istio/istio.io.git
Added headersToDownstreamOnAllow example in ext authz task page (#12791)
* Added headersToDownstreamOnAllow example in ext authz task page Added headersToDownstreamOnAllow to https://istio.io/latest/docs/tasks/security/authorization/authz-custom/#define-the-external-authorizer. * Update index.md * updated snips.sh * made suggested changes * make scripts fix
This commit is contained in:
parent
5e997119fa
commit
e348075be1
|
@ -143,6 +143,7 @@ allows requests with the header `x-ext-authz: allow`.
|
||||||
port: "4180" # The default port used by oauth2-proxy.
|
port: "4180" # The default port used by oauth2-proxy.
|
||||||
includeRequestHeadersInCheck: ["authorization", "cookie"] # headers sent to the oauth2-proxy in the check request.
|
includeRequestHeadersInCheck: ["authorization", "cookie"] # headers sent to the oauth2-proxy in the check request.
|
||||||
headersToUpstreamOnAllow: ["authorization", "path", "x-auth-request-user", "x-auth-request-email", "x-auth-request-access-token"] # headers sent to backend application when request is allowed.
|
headersToUpstreamOnAllow: ["authorization", "path", "x-auth-request-user", "x-auth-request-email", "x-auth-request-access-token"] # headers sent to backend application when request is allowed.
|
||||||
|
headersToDownstreamOnAllow: ["content-type", "set-cookie"] # headers sent back to the client when request is allowed.
|
||||||
headersToDownstreamOnDeny: ["content-type", "set-cookie"] # headers sent back to the client when request is denied.
|
headersToDownstreamOnDeny: ["content-type", "set-cookie"] # headers sent back to the client when request is denied.
|
||||||
{{< /text >}}
|
{{< /text >}}
|
||||||
|
|
||||||
|
|
|
@ -100,6 +100,7 @@ data:
|
||||||
port: "4180" # The default port used by oauth2-proxy.
|
port: "4180" # The default port used by oauth2-proxy.
|
||||||
includeRequestHeadersInCheck: ["authorization", "cookie"] # headers sent to the oauth2-proxy in the check request.
|
includeRequestHeadersInCheck: ["authorization", "cookie"] # headers sent to the oauth2-proxy in the check request.
|
||||||
headersToUpstreamOnAllow: ["authorization", "path", "x-auth-request-user", "x-auth-request-email", "x-auth-request-access-token"] # headers sent to backend application when request is allowed.
|
headersToUpstreamOnAllow: ["authorization", "path", "x-auth-request-user", "x-auth-request-email", "x-auth-request-access-token"] # headers sent to backend application when request is allowed.
|
||||||
|
headersToDownstreamOnAllow: ["content-type", "set-cookie"] # headers sent back to the client when request is allowed.
|
||||||
headersToDownstreamOnDeny: ["content-type", "set-cookie"] # headers sent back to the client when request is denied.
|
headersToDownstreamOnDeny: ["content-type", "set-cookie"] # headers sent back to the client when request is denied.
|
||||||
ENDSNIP
|
ENDSNIP
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue