Has anyone successfully integrated Ory Keto with a...
# talk-keto
c
Has anyone successfully integrated Ory Keto with a Django Admin site? I'm currently working on integrating it using a custom middleware and a backend that calls Keto's check API from
has_perm
. However, I've encountered a problem with this approach: the page load time is significantly slowed down due to multiple ModelAdmins making calls to the check API when generating the admin view. One potential solution is to leverage Django's permission system, which is based on user groups. This system loads the entire permissions model in memory for a given user and quickly evaluates the user's permissions for each ModelAdmin. However, it's unclear if Ory Keto supports this method.
m
Hey @creamy-evening-80382 we have an example for Ory Kratos and Django here https://github.com/ory/examples/tree/master/django-ory-cloud but its a bit dated, and does not include AuthZ/Keto. Any example code you can share would be much appreciated! I am not sure how to best solve your problem though 😕 maybe there is a way get all the required permissions in one check API call?