https://www.ory.sh/ logo
#talk-keto
Title
# talk-keto
l

lively-beard-47107

02/23/2022, 4:35 PM
Hi! Having the following example:
Copy code
{
  "namespace": "default-namespace",
  "object": "group_a",
  "relation": "member",
  "subject_id": "user_a"
}
and
Copy code
{
  "namespace": "default-namespace",
  "object": "resource_a",
  "relation": "access",
  "subject_id": "default-namespace:group_a#member"
}
NOW, ASKING THE KETO IF THE
RELATION TUPLE
BELOW HAS ACCESS:
Copy code
{
  "namespace": "default-namespace",
  "object": "resource_a",
  "relation": "access",
  "subject_id": "user_a"
}
Is it supposed to return
True
? If yes, any idea why it isn’t working for me?
👀 1
s

steep-lamp-91158

02/25/2022, 3:23 PM
there we changed the behaviour
BREAKING CHANGES: This patch changes the payload of the REST API. The gRPC API is not affected. The parameter
subject
was previously an encoded string. With this change clients have to explicitly use either
subject_id
or (
subject_set.namespace
and
subject_set.object
and
subject_set.relation
). The same is true for REST responses returned by Keto. An error with a hint will be returned if
subject
is still used.
1
l

lively-beard-47107

02/28/2022, 6:52 PM
That helped a lot. Thanks
s

steep-lamp-91158

02/28/2022, 7:09 PM
Sure, np