Closed kwaller-ral closed 8 years ago
Yes, if you enable that flag your entire app has to be tenant aware, meaning you need to use the APIs that pass which tenant you're using.
What API do I need to use? I was expecting there to be a HTML Input for Tenant when turning on the boolean flag, similar to adding params to the "CustomUser.cs" class (ie add Age, get input for Age etc..)
Well, they're all the same APIs, just overloaded versions that accept the tenant param. My point is that the app needs to know it's using the tenant versions of the APIs.
Yeah I get that I would need to pass a string "tenant" along with the command. I figured that this would work out of the box just by ticking the Config.MultiTenant = true;
box, and having the UI display an input box for tenant, however this does not work.
Your assumption was incorrect. If you want multi tenancy you need to pass that as a param. MR doesn't know what a tenant means to your app, thus the requirement.
Using the sample here https://github.com/IdentityServer/IdentityServer3.Samples/tree/master/source/MembershipReboot/WebHost Running out of the box works great, now I am trying to play around with Multi-Tenancy so in CustomCofig.cs I have:
Config.MultiTenant = true;
Build/Run > Create User > No spot to enter "Tenant" > get this error:
Any ideas?