summaryrefslogtreecommitdiff
path: root/src/authorization/authorizer.rs
blob: 627335855976af74c6835ef0807bac469402fca9 (plain)
1
2
3
4
5
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;
}