p2-inc / keycloak-orgs

Single realm, multi-tenancy for SaaS apps
https://phasetwo.io
Other
389 stars 66 forks source link

Team entity in keycloak-orgs #14

Closed hookenful closed 1 year ago

hookenful commented 1 year ago

Hello there!

I see there is an entity "Team" in source code of keycloak-orgs. Is that planning feature? I don't see any things for it around here. I am asking, because there is need to introduce some "projects" functionality and I noticed that "team" definition is close to that.

I've noticed comment for "teams are on hold for now". Is there a reason for that?

hookenful commented 1 year ago

If it possible, I can elaborate to help with that functionality, but honestly I am C# developer with almost-zero Java experience, but can adapt with some help of workspace setup and debug setup.

What I've already done:


Which help do I need:
- Setup for debug keycloak SPI in IDEA. Is it possible?
xgp commented 1 year ago

We've decided to hold off on teams for a while, as there has been no pull from customers.

I don't know how to set up Keycloak debugging in IntelliJ. I know there have been a few postings on the Keycloak boards, but I can't find them right now.

xgp commented 1 year ago

Closing for now. Please reopen if you decide to add the functionality.

hookenful commented 1 year ago

Are there any notices about what have already been done for teams and what needs to be done?

xgp commented 1 year ago

A good starting point for understanding how the internals are built are the io.phasetwo.service.model classes OrganizationProvider and OrganizationModel.

You'll find partially completed code for teams all over the place. Off of the top of my head, there are a few places that need to be extended:

You'll find a lot of examples you can use that are similar to how attributes, domains, members, etc. are related to Organizations. Thanks for any help you can give!