summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/authorization/check_service.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/authorization/check_service.rs b/src/authorization/check_service.rs
index 0f29f0b9..5ee12669 100644
--- a/src/authorization/check_service.rs
+++ b/src/authorization/check_service.rs
@@ -16,7 +16,9 @@ impl CheckService {
}
#[tonic::async_trait]
-impl envoy_types::pb::envoy::service::auth::v3::authorization_server::Authorization for CheckService {
+impl envoy_types::pb::envoy::service::auth::v3::authorization_server::Authorization
+ for CheckService
+{
async fn check(
&self,
request: Request<CheckRequest>,
@@ -34,7 +36,7 @@ impl envoy_types::pb::envoy::service::auth::v3::authorization_server::Authorizat
} else {
Ok(Response::new(CheckResponse {
status: Some(envoy_types::pb::google::rpc::Status {
- code: 7,
+ code: 16,
message: "Unauthorized".to_string(),
details: vec![],
}),