Closed goodhamgupta closed 2 years ago
Hi, I was about to start creating an Authzed library for Elixir and then I saw you just started one - awesome! Have you tried encoding consistency as:
consistency: Consistency.new(requirement: {:fully_consistent, true})
I think it's a quirk with the Elixir gRPC library - oneof
fields are encoded by passing a tuple with the oneof
field name as the first element, and the value as the second element.
Hi @kamilkowalski,
Thank you so much for the hint! 😄 I wasn't aware of this feature in elixir gRPC, and struggled to find an answer to this problem.
The tests now work as expected and I've created a PR here: #2 if you would like to confirm the functionality. Thanks! 😄
In the file authzed_test.exs, when we add a consistency check using the option:
we get the following error:
This error occurs irrespective of how we initialize the
Consistency
. For exampleDue to this error, all consistency modes are currently not supported.