-
Notifications
You must be signed in to change notification settings - Fork 6
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
organization groups api prototype #3
base: main
Are you sure you want to change the base?
Conversation
Of course, an implementation PR will be created after the schema is accepted. |
@a8t3r This is an interesting proposal. Let me fully review it this weekend, but I think this is a great idea. |
@a8t3r Thanks again for sending this over. Sorry it took me so long to review it. The idea, API and implementation look solid. However, I wanted to introduce an idea for a change that we had been thinking about making to the Organizations model. Currently, an OrganizationRole is associated with a single Organization. This means that if you have an OrganizationRole that is meaningful in your application that can be given to users in each Organization, you have to create an OrganizationRole for each Organization. This creates lots of duplication, and requires the developer to manage these roles in order to make sure that each Organization has the same OrganizationRoles. Despite our initial implementation following this model, we aren't aware of a single customer using it in a way that requires the OrganizationRole to be associated with an Organization. We're considering de-coupling OrganizationRoles from Organizations. The API for CRUD OrganizationRoles would change to
but the API for granting OrganizationRole for Users would not change, as the OrganizationRole would be associated with a User for a single Organization
The upside is that this would have little effect on how people are using OrganizationRoles today (very few customers us the APIs for CRUD OrganizationRoles), and your idea for adding an OrganizationGroups model would not need to change much. What do you think about that suggestion? |
Hi @a8t3r just wanted to check to see if you had any comments on the proposal. I'm getting ready to implement that, and will come back to the groups PR after that. |
@xgp I agree decoupling roles from organizations make sense. But, as I understand, your implementation details don't contains any PS. Recently you mentioned :
Frankly, I would like to see an implementation in which |
@a8t3r Regarding your comment about The problem with implementing this as a standard That said, it looks like there is some momentum behind adding Organizations to Keycloak directly. It looks like the Keycloak leader will be designing the implementation. Initial "discussions" are here: I'm not really sure where this leaves this extension, other than the time between "discussions" and implementations at Keycloak has been years in my observation. |
@xgp Thanks for the clarification, I agree with your arguments. |
This is an api prototype for organization groups, related to p2-inc/keycloak-orgs#25
Currently PR is intended for discussion and agreement on the scheme.