Skip to main content

authorize

Function authorize 

Source
pub fn authorize(grant: &[Capability], request: &AccessRequest) -> Decision
Expand description

Decide a request against a UCAN grant directly, independent of any compiled policy: permit iff some capability in the grant authorizes it, else deny. This is the reference used to check the compiled policy.