summaryrefslogtreecommitdiff
path: root/src/authorization/server.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/authorization/server.rs')
-rw-r--r--src/authorization/server.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/authorization/server.rs b/src/authorization/server.rs
index 2ad270df..309d751e 100644
--- a/src/authorization/server.rs
+++ b/src/authorization/server.rs
@@ -13,10 +13,15 @@ impl Server {
let authorization_service =
AuthorizationServer::new(CheckService::new(Arc::new(CedarAuthorizer::default())));
+ let reflection_service = tonic_reflection::server::Builder::configure()
+ .register_encoded_file_descriptor_set(tonic_health::pb::FILE_DESCRIPTOR_SET)
+ .build_v1()?;
+
Ok(Self::new_with(|mut builder| {
builder
.add_service(authorization_service)
.add_service(health_service)
+ .add_service(reflection_service)
}))
}