cedar_policy::ffi

Function is_authorized_partial_json

Source
pub fn is_authorized_partial_json(json: Value) -> Result<Value, Error>
Available on crate feature partial-eval only.
Expand description

Input is a JSON encoding of AuthorizationCall and output is a JSON encoding of PartialAuthorizationAnswer

ยงErrors

Will return Err if the input JSON cannot be deserialized as an AuthorizationCall.

This feature is experimental. For more information see https://github.com/cedar-policy/rfcs/blob/main/README.md#experimental-features