Skip to content

Ory/Keto nested users/groups example #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
4 of 6 tasks
peturgeorgievv opened this issue May 10, 2022 · 5 comments
Closed
4 of 6 tasks

Ory/Keto nested users/groups example #28

peturgeorgievv opened this issue May 10, 2022 · 5 comments
Labels
feat New feature or request. stale Feedback from one or more authors is required to proceed.

Comments

@peturgeorgievv
Copy link

Preflight checklist

Describe your problem

I can't find any full working example with REST api's for Ory/Keto. I see with CLI how you do groups and stuff, but with REST it's very basic or just API's.

Describe your ideal solution

I would love to see REST API's for Ory/Keto in action. Meaning, open the docs and see an example of how to make Sample APP with Ory/Keto REST which would have some nested users/groups structure as this is very often used.

users (not sure do i even need this?)

  • user1, user2

roles

  • admin (user1,user2,user3) is able to controll all below
  • manager (user4,user5) is controlled by admin & controlls sub-managers
  • sub-manager (user6,user7)

directories

  • directory1 (has it's own admin, manager, submanagers)
  • directory2 (same as above)

It would be perfect if it is in React/Nextjs as i'd say it's the most used.

Workarounds or alternatives

I tried to read all the docs and examples for gRPC and others, but it's hard to understand how to make an REST Api call for let's say modify a whole group of users/directories etc

Version

Latest

Additional Context

No response

@peturgeorgievv peturgeorgievv added the feat New feature or request. label May 10, 2022
@aeneasr
Copy link
Member

aeneasr commented May 10, 2022

Thank you for these ideas! Ory Keto is almost available on production as API-only. We are working towards a UI, and will also be adding REST documentation and guides around it.

/cc @tomekpapiernik @zepatrik @hperl

@gen1us2k
Copy link
Contributor

Hello @peturgeorgievv . We have the following guides under review

  1. RBAC guide for Keto
  2. Keto SDK examples

They might help you understand how it works.
However, I agree that a real-life example is missing right now.

@peturgeorgievv
Copy link
Author

@gen1us2k Hello, i read those two which you pointed, but as mentioned it is only for gRPC or sdk use. In real life scenarios I think that mostly it would be used with REST (even though gRPC is popular with microservices). Even in the Keto SDK Examples there is a comment in the PR about configuration for REST, as it is not very clear... :)

@vinckr vinckr changed the title Ory/Keto REST API's don't have good examples, if any at all Ory/Keto nested users/groups example Jun 20, 2022
@vinckr vinckr transferred this issue from ory/docs Jun 20, 2022
@vinckr
Copy link
Member

vinckr commented Jun 20, 2022

We have some examples for the SDK now, but as you pointed out not one with a fully fledged app with nested users/groups structure.
I transferred the issue to ory/examples, I think it would be best to first add something here.

Also check out @gen1us2k ory full stack example. It is WIP atm but we will soon add it to this repository. It might also be helpful for your use case.

@github-actions github-actions bot added the stale Feedback from one or more authors is required to proceed. label Jun 21, 2023
@vinckr vinckr removed the stale Feedback from one or more authors is required to proceed. label Jun 26, 2023
@ory ory deleted a comment from github-actions bot Jun 26, 2023
Copy link

Hello contributors!

I am marking this issue as stale as it has not received any engagement from the community or maintainers for a year. That does not imply that the issue has no merit! If you feel strongly about this issue

  • open a PR referencing and resolving the issue;
  • leave a comment on it and discuss ideas on how you could contribute towards resolving it;
  • leave a comment and describe in detail why this issue is critical for your use case;
  • open a new issue with updated details and a plan for resolving the issue.

Throughout its lifetime, Ory has received over 10.000 issues and PRs. To sustain that growth, we need to prioritize and focus on issues that are important to the community. A good indication of importance, and thus priority, is activity on a topic.

Unfortunately, burnout has become a topic of concern amongst open-source projects.

It can lead to severe personal and health issues as well as opening catastrophic attack vectors.

The motivation for this automation is to help prioritize issues in the backlog and not ignore, reject, or belittle anyone.

If this issue was marked as stale erroneously you can exempt it by adding the backlog label, assigning someone, or setting a milestone for it.

Thank you for your understanding and to anyone who participated in the conversation! And as written above, please do participate in the conversation if this topic is important to you!

Thank you 🙏✌️

@github-actions github-actions bot added the stale Feedback from one or more authors is required to proceed. label Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request. stale Feedback from one or more authors is required to proceed.
Projects
None yet
Development

No branches or pull requests

4 participants