|
let query = Request::new(Some(principal), Some(action), Some(resource), context); |
The only way I got partial evaluation to work was to use Request::RequestBuilder since you might be missing the principal, action, or resource. I don't mind sharing my code, but I'm sure my code is horrific since this is the first time I write any Rust code.
|
.is_authorized_partial(&query, &self.policy_set, &self.entity_store); |
I also had to convert the entity store into a partial evaluation compatible one using Entities::partial
cedar/lib/src/interface.rs
Line 63 in 7ec84fa
The only way I got partial evaluation to work was to use Request::RequestBuilder since you might be missing the principal, action, or resource. I don't mind sharing my code, but I'm sure my code is horrific since this is the first time I write any Rust code.
cedar/lib/src/interface.rs
Line 66 in 7ec84fa
I also had to convert the entity store into a partial evaluation compatible one using Entities::partial