anarsultanov / keycloak-multi-tenancy

Keycloak extension for creating multi-tenant IAM for B2B SaaS applications.
Apache License 2.0
103 stars 11 forks source link

feature: Allow enabling RBAC for tenants creation through API #18

Closed anarsultanov closed 5 months ago

anarsultanov commented 5 months ago

Introduce the requiredRoleForTenantCreation realm attribute to restrict tenant creation in Keycloak to users with a specified client role.

Usage

Configure the requiredRoleForTenantCreation attribute by specifying the client role that should be permitted to create tenants. This can be done via Keycloak's REST API using the PUT /admin/realms/{realm} endpoint.

Behavior

Closes #13