p2-inc / keycloak-orgs

Single realm, multi-tenancy for SaaS apps
https://phasetwo.io
Other
417 stars 72 forks source link

Keycloak SSO for Multi tenant app #252

Closed shkmaaz11 closed 5 months ago

shkmaaz11 commented 5 months ago

I'm trying to implement multi-tenancy in Keycloak. I've added a realm and in that realm I have different organization say app1 and app2 with individual identity providers. My question is that if I want SSO between these 2 apps how to achieve that? If I login to app1 and move to app2 I shouldn't be asked to login in app2

xgp commented 5 months ago

That has nothing to do with this extension. Configure your app1 and app2 as Clients and Keycloak automatically does what you want.

shkmaaz11 commented 5 months ago

@xgp Thanks for the response. That's what we're currently doing. But we want to isolate the tenants. And have one tenant as one org

xgp commented 5 months ago

I don’t really understand your use case. I’d recommend checking out the new multi tenancy feature in Keycloak 25. https://www.keycloak.org/2024/06/announcement-keycloak-organizations.html