Skip to content

Potential issues in the partial evaluation logic #20

Description

@ygrignon-sfdc

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions