summaryrefslogtreecommitdiff
path: root/src/authorization/authorizer.rs
blob: 81588a31f52ab289e905ec614f25e1113b097b32 (plain)
1
2
3
4
5
use envoy_types::pb::envoy::service::auth::v3::CheckRequest;

pub trait Authorizer: std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static {
    fn authorize(&self, request: CheckRequest) -> bool;
}