diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-16 08:48:36 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-16 08:48:36 -0600 |
| commit | be3e6a08f1d28218f527a8e8455bcf03fc55b6ed (patch) | |
| tree | c80619148dc8c4ad448729808c94115982d15d44 /src/authorization/authorizer.rs | |
| parent | de1f82b30f64a7da1ae16e0b28f1a04475e217d7 (diff) | |
refactor: rename to default authorizer
Diffstat (limited to 'src/authorization/authorizer.rs')
| -rw-r--r-- | src/authorization/authorizer.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/authorization/authorizer.rs b/src/authorization/authorizer.rs index d5363c84..62733585 100644 --- a/src/authorization/authorizer.rs +++ b/src/authorization/authorizer.rs @@ -3,18 +3,3 @@ use envoy_types::ext_authz::v3::pb::CheckRequest; pub trait Authorizer: std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static { fn authorize(&self, request: CheckRequest) -> bool; } - -#[derive(Debug)] -pub struct DefaultAuthorizer {} - -impl Default for DefaultAuthorizer { - fn default() -> Self { - Self {} - } -} - -impl Authorizer for DefaultAuthorizer { - fn authorize(&self, _request: CheckRequest) -> bool { - true - } -} |
