IdentityServer4.MultiTenant icon indicating copy to clipboard operation
IdentityServer4.MultiTenant copied to clipboard

Any chance of getting this to work with the released version of IdentityServer4?

Open MagnusJohansson opened this issue 7 years ago • 6 comments

Hi,

was looking forward to look into and test it, but it doesn't work with IDS4 v1+ (lacking the InMemory/InMemoryUserLoginService namespaces since v1.0)

Any chance of getting this sample to work with IDS4 "proper" ?

MagnusJohansson avatar Mar 10 '17 16:03 MagnusJohansson

@MagnusJohansson I had put this together as an example of how to implement a multi-tenant identity server using IDSRV4. I never thought anyone would find it useful beyond inspiration. But if you are finding this useful, I am happy to look into bumping the version of IDSRV up, just let me know.

Note that I may not be able to do it right away. Perhaps over the weekend.

schatekar avatar Mar 16 '17 10:03 schatekar

I've done a quick fork on saaskit to get it working on netcoreapp2.0 Now builder.UseCookieAuthentication(new CookieAuthenticationOptions is Obsolete.

I am trying to obtain the same effect using a set of transient services that overwrite the configuration every time it is needed.

See the PR here: https://github.com/saaskit/saaskit/pull/96

Let me know what you think @schatekar. Thanks!

ovidiaconescu avatar Mar 06 '18 20:03 ovidiaconescu

@ovidiaconescu LGTM

Transient services are better from a unit testing point of view too.

schatekar avatar Mar 06 '18 21:03 schatekar

@schatekar Did you get chance to post your example ? I'm working on making my app to work with Identity Server and Multitenant. and running into different issues. Hopefully your solution can give some hints.

himalpatel81 avatar Apr 23 '18 11:04 himalpatel81

@himalpatel81 No, I have not. What issues are you running into?

schatekar avatar Apr 23 '18 11:04 schatekar

@schatekar I've followed the code given at https://github.com/saaskit/saaskit/pull/96/files. I've got two different tenants. The code identifies the tenant properly using the host name. However, when I try to hit the openid-configuration endpoint it fails with 404.

If I remove the Multitenancy, then it works fine. So not sure what am i doing wrong.

himalpatel81 avatar Apr 23 '18 11:04 himalpatel81