From 2e26e151c273cbcc063eba2d08d28dc2ba5a33ec Mon Sep 17 00:00:00 2001 From: mo khan Date: Thu, 19 Jun 2025 17:45:39 -0600 Subject: refactor: split types into separate files --- src/authorization/authorizer.rs | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/authorization/authorizer.rs (limited to 'src/authorization/authorizer.rs') diff --git a/src/authorization/authorizer.rs b/src/authorization/authorizer.rs new file mode 100644 index 00000000..0f700ba7 --- /dev/null +++ b/src/authorization/authorizer.rs @@ -0,0 +1,5 @@ +use envoy_types::ext_authz::v3::pb::CheckRequest; + +pub trait Authorizer { + fn authorize(&self, request: CheckRequest) -> bool; +} -- cgit v1.2.3