summaryrefslogtreecommitdiff
path: root/src/authorization/authorizer.rs
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-06-19 17:45:39 -0600
committermo khan <mo@mokhan.ca>2025-06-19 17:45:39 -0600
commit2e26e151c273cbcc063eba2d08d28dc2ba5a33ec (patch)
tree18b436cf19da943e91e92d57585fb38d7634520c /src/authorization/authorizer.rs
parent1041f07d7ef3faedf759c31cd8b2c9df264799ff (diff)
refactor: split types into separate files
Diffstat (limited to 'src/authorization/authorizer.rs')
-rw-r--r--src/authorization/authorizer.rs5
1 files changed, 5 insertions, 0 deletions
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;
+}