Authorization Service

The authorization service request messages used by external authorization network filter and HTTP filter.

service.auth.v2alpha.CheckRequest

[service.auth.v2alpha.CheckRequest proto]

{
  "attributes": "{...}"
}
attributes
(service.auth.v2alpha.AttributeContext) The request attributes.

service.auth.v2alpha.DeniedHttpResponse

[service.auth.v2alpha.DeniedHttpResponse proto]

HTTP attributes for a denied response.

{
  "status": "{...}",
  "headers": [],
  "body": "..."
}
status
(type.HttpStatus, REQUIRED) This field allows the authorization service to send a HTTP response status code to the downstream client other than 403 (Forbidden).
headers
(core.HeaderValueOption) This field allows the authorization service to send HTTP response headers to the the downstream client.
body
(string) This field allows the authorization service to send a response body data to the the downstream client.

service.auth.v2alpha.OkHttpResponse

[service.auth.v2alpha.OkHttpResponse proto]

HTTP attributes for an ok response.

{
  "headers": []
}
headers
(core.HeaderValueOption) HTTP entity headers in addition to the original request headers. This allows the authorization service to append, to add or to override headers from the original request before dispatching it to the upstream. By setting append field to true in the HeaderValueOption, the filter will append the correspondent header value to the matched request header. Note that by Leaving append as false, the filter will either add a new header, or override an existing one if there is a match.

service.auth.v2alpha.CheckResponse

[service.auth.v2alpha.CheckResponse proto]

Intended for gRPC and Network Authorization servers only.

{
  "status": "{...}",
  "denied_response": "{...}",
  "ok_response": "{...}"
}
status
(Status) Status OK allows the request. Any other status indicates the request should be denied.
denied_response

(service.auth.v2alpha.DeniedHttpResponse) Supplies http attributes for a denied response.

An message that contains HTTP response attributes. This message is used when the authorization service needs to send custom responses to the downstream client or, to modify/add request headers being dispatched to the upstream.

Only one of denied_response, ok_response may be set.

ok_response

(service.auth.v2alpha.OkHttpResponse) Supplies http attributes for an ok response.

An message that contains HTTP response attributes. This message is used when the authorization service needs to send custom responses to the downstream client or, to modify/add request headers being dispatched to the upstream.

Only one of denied_response, ok_response may be set.