cedar-policy / cedar-java

Java bindings for the Cedar language
https://www.cedarpolicy.com
Apache License 2.0
42 stars 19 forks source link

Add support for partial evaluation #75

Closed ygrignon-sfdc closed 8 months ago

ygrignon-sfdc commented 9 months ago

Issue #, if available:

74

Description of changes: Expose cedar's json_is_authorized_partial function to Java via the new AuthorizationEngine.isAuthorizedPartial() method.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

andrewmwells-amazon commented 9 months ago

LGTM overall. AFAIK, Java doesn't have an equivalent to the feature flags we use in Rust, so I'm not sure what the best way to communicate that PartialEval is an experimental feature is. Maybe we could add warnings in the docs?