cedar_policy::ffi

Function is_authorized_json

Source
pub fn is_authorized_json(json: Value) -> Result<Value, Error>
Expand description

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

ยงErrors

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