Support contextual tuples an assertion in OpenFGAClient #449
Labels
dotnet-sdk
Affects the C#/DotNet SDK
enhancement
New feature or request
go-sdk
Affects the Go SDK
java-sdk
Affects the Java/Kotlin SDK
js-sdk
Affects the JavaScript SDK
python-sdk
Affects the Python SDK
Checklist
Describe the problem you'd like to have solved
OpenFGA now supports adding contextual tuples to an assertion, in #448 we will be updating the
OpenFGAApi
to support this but will need to do some work to expose this in theOpenFGAClient
.Note that the request body for WriteAssertions treats
contextual_tuples
similar toListUsers
in that it is an array of tuple objects (as opposed toCheck
which accepts an object with atuple_keys
property).Describe the ideal solution
The
WriteAssertions
andReadAssertions
endpoints are updated to supportcontextual_tuples
.As a rough plan of work:
ClientAssertion
type in each language to includecontextual_tuples, it should be an array of
ClientTuple`ClientTuple
toTupleKey
(see how the SDKListUsers
method handles this)contextual_tuples
Alternatives and current workarounds
No response
References
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: