dazinator / Dotnettency

Mutlitenancy for dotnet applications
MIT License
111 stars 23 forks source link

Per Tenant Authentication #37

Closed dazinator closed 6 years ago

dazinator commented 6 years ago

Need to get Authentication working on a per tenant basis.

Should result in a sample showing: how different tenants can be configured with different authentication mechanisms. For example, Tenant A uses cookie authentication configured one way, tenant B can use cookie authentication configured another, tenant C might not use any etc.

dazinator commented 6 years ago

Having issues with IOptions.. see https://groups.google.com/forum/#!topic/structuremap-users/isp2thVXmpg

dazinator commented 6 years ago

Raised https://github.com/structuremap/StructureMap.Microsoft.DependencyInjection/issues/43

dazinator commented 6 years ago

If there is anyone reading this that is familiar with structuremap and might be able to help with this failing test case, help would be greatly appreciated! Thank you

dazinator commented 6 years ago

Autofac has a similar issue: https://github.com/autofac/Autofac.Extensions.DependencyInjection/pull/33

dazinator commented 6 years ago

Submitted PR to resolve Autofac issue, just required updating to latest stable autofac dependency. Due to this, autofac is now looking the more promising container, so i might switch to this over structuremap.

dazinator commented 6 years ago

Done: https://github.com/dazinator/Dotnettency.Samples/tree/aspnetcore20/src/Sample.Authentication