1
Manage Multitenancy with Users Logging in via Keycloak
Source: directus/directus#24856 · opened by @TonySondaggi
Summary Implement multitenancy management for users logging in via Keycloak. Currently, Directus already retrieves the list of Keycloak groups from the JWT token, reads them, and based on the environment variable AUTH_KEYCLOAK_ROLE_MAPPING, it selects the first matching role ID and assigns that role to the user. The system should allow multiple roles to be assigned to a user in this way (e.g., if two groups match two role IDs, both roles should be assigned to the user). Each role must have specific permissions to manage/view various collections and schemas. Basic Example _No response_ Motivation Native multitenancy management in this way would make Directus an excellent candidate for project use cases requiring SSO (and non-SSO) access for multiple users who need cumulative and dynamically assigned permissions. Detailed Design The user should have a list of assignable roles instead of a single role. The permissions derived from this should be additive, not subtractive (if a …
No pledges yet. Be the first to back this.
Comments
Similar requests
Option to log out from Keycloak when logging out of Data Studio App
3 votes · 0 comments
Ability to login to directus using access token of a configured provider.
2 votes · 0 comments
Multitenancy SuperAdmin Portal
32 votes · 0 comments
Directus as a SSO provider
26 votes · 0 comments
Allow logging-in to same account via multiple auth providers
11 votes · 0 comments
No comments yet.