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
If Configured: Tenant creation is limited to users who have the specified client role. This restriction does not affect create-tenant required action if it is configured.
If Not Configured: Tenant creation is allowed for all authenticated users, ensuring backward compatibility.
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 thePUT /admin/realms/{realm}
endpoint.Behavior
create-tenant
required action if it is configured.Closes #13