Hi Johan,
La 02.04.2020 17:41, Johan Sandqvist a scris:
> Hi Eugen,
>
> Did you have a need to provide SSO for the individual tenants and if
> so you I assume you found a way to do that within one Realm?
Not sure what you mean by SSO for individual tenants. We use one realm.
We have implemented groups, roles, permissions in our app, not in keycloak.
We might use the roles in keycloak as well as our own permission system
but for other stuff like mark a user as a beta-tester etc.
We give users access only to the login, registration and account
applications. We keep admin access for ourselves. We don't delegate
access to users.
> We would mostly look at Keycloak to handle storing user credentials,
> JWT token generation and the authentication and SSO functionality and
> would wrap admin functions like creating a new customer (tenant), new
> users and SSO/user federation config behind a service that use the
> admin api to facilitate. We would store minimal customer and user info
> in Keycloak and keep most of it in our service.
I think we have a similar solution but we did not use a tenant /
customer. This means we can't delegate user administration to Keycloak
admin and we will have to implement it ourselves. This is not that bad
since we do have custom flows and rules. It also keeps our dependency on
Keycloak minimal.
As a side effect, since we have a single user store, a user can access
multiple tenants without requiring to register for multiple realms. For
us and the business model we have this is a very nice/important feature.
If keycloak model / UI changes we are not that impacted.
Good luck and please share your experience with this model once you go
live and face Day 2 operations.
I'm happy to have a call to share some of our experiences. Just let me
know.
Eugen
>
> /Johan
>
> On Thursday, April 2, 2020 at 1:26:15 PM UTC+2, Johan Sandqvist wrote:
>
> Hello cloakers,
>
> We are in the process of defining the architecture of a multi
> tenant SaaS product and considering Keycloak with PostgreSQL
> within that.
> Each tenant in our product need to be able to have its own SSO
> configuration so a Realm per Customer (tenant) seems like the
> necessary approach.
>
> Has anyone used Keycloak in a multi tenancy SaaS application and
> know any limitations in number of Reals it supports or any other
> limitations with a setup like that?
>
> /Johan
>
>
https://groups.google.com/d/msgid/keycloak-user/03939f4f-9940-4f9d-8cda-40f3fb02ab52%40googlegroups.com
> <
https://groups.google.com/d/msgid/keycloak-user/03939f4f-9940-4f9d-8cda-40f3fb02ab52%40googlegroups.com?utm_medium=email&utm_source=footer>.