steep-greece-67535
03/10/2025, 12:26 PMmagnificent-energy-493
steep-greece-67535
03/10/2025, 7:53 PM<http://business1.com|business1.com>
)
• A subdomain of my platform (e.g., <http://business1.onapp.com|business1.onapp.com>
)
• Or both, or many custom domains
The setup:
1. Administrator Backoffice: Business owners log into a backoffice (e.g., <http://admin.app.com|admin.app.com>
) to manage their business, set up services, and configure their booking website.
2. Public Booking Websites: Each business has a booking website (e.g., <http://business1.onapp.com|business1.onapp.com>
or <http://business1.com|business1.com>
), where their customers (end-users) can browse services and book appointments.
The login requirement:
• End-users should be able to log in or register directly on the booking website (<http://business1.onapp.com|business1.onapp.com>
or <http://business1.com|business1.com>
) without being redirected to <http://app.com|app.com>
.
• These login forms would authenticate users against the same user database, but each business’s booking website would handle authentication independently (i.e., sessions don’t need to be shared across different businesses).
• The goal is to allow white-labeling, so the business’s customers don’t see my SaaS branding in the authentication process.
I hope this helps.magnificent-energy-493
steep-greece-67535
03/10/2025, 8:36 PMmagnificent-energy-493
owner can just remove it from that businessHow do you imagine this part in practice? If the identities are shared across all domains then how can an owner of one domain remove the idenitity? I guess you could implement some kind of "deny-list on a per domain basis, but that would require extra code🤔
So for this use case, do I still need to use Ory Network, or it can be achieved on self host instance via Reverse Proxy or something similar?Well everything is possible 😉 but Ory Network has this "out-of-the-box". I am not sure how you would do this multi-tenant setup when self-hosting. You can scale Kratos horizontally, but it is recommended to not do this on your own as it gets very complex quickly.
steep-greece-67535
03/10/2025, 9:00 PMHow do you imagine this part in practice?In my API there will is business identity relation table, if that identity isn't part of business we will just prevent login, or login and show message like not allowed. That is handled outside of Kratos/Hydra.
I am not sure how you would do this multi-tenant setup when self-hosting.Multi-tenancy is already implement within my application as identity - business relations. With Kratos we only care about identities and treat them separate, so i just needs a way to login / register a user to one same userbase, not multiple. And I do not need shared session, e.g. user logged in business1.com and needs to be logged into business2.com also, we will just let them login again, and save those session only for that domain. But credentials overall is shared and it should be in one Kratos instance. I hope this helps better understand my situation.
but Ory Network has this "out-of-the-box".I have that in mind for the future if and when my application grows. Right now, it's still in development and a very small startup, so we're focused on keeping costs low. That feature is part of Ory Kratos' Enterprise plan, which we don’t really need at the beginning.
magnificent-energy-493
steep-greece-67535
03/10/2025, 11:36 PMsteep-lamp-91158
steep-lamp-91158
steep-lamp-91158
steep-lamp-91158
steep-greece-67535
03/11/2025, 10:17 AMAs a user, I'd be confused and would not trust to use the same credentials on different (seemingly unrelated) domains. Also, stuff like webauthn/passkeys/social credentials get super tricky. I know because we had to make it work for Ory NetworkYou are right. This is the thing that I never thought of, and it makes so much sense!
Also, from experience what we heard from other similar customers, you should probably use separate user-pools from the get-go. Eventually, you will have a customer who wants to use a specific SSO provider, SCIM, manage all their users, or some other complex requirement that will be a night mare to implement in a single system.I am thinking about that now after you opened my eyes to those issues. But here is the problem: Since my niche is salon booking and scheduling, I might need a centralized shared user base. If a salon client books appointments at multiple salons (for nails, hair, etc.), it would be easier for them to use shared credentials rather than remembering different login details for each salon. On the other hand, salon owners may explicitly want their clients to be associated only with their salon or use a specific SSO provider, as you mentioned. So now I’m stuck on what works best and what should be used in this scenario. If you have any suggestions, I’d love to hear them. However, this issue doesn’t seem directly related to Ory, so it feels more like my own problem to solve. Anyways, thanks for the help, guys. Without it, I would probably go the wrong way.
steep-lamp-91158
steep-greece-67535
03/11/2025, 3:16 PM