practical-aspnetcore icon indicating copy to clipboard operation
practical-aspnetcore copied to clipboard

Add Sample for Multi-tenancy & ASP Identity Option

Open weedkiller opened this issue 5 years ago • 6 comments

Hello, as SAAS platforms are more proliferate now, we need to be able to build multi tenant options easier templatized way with ASP Identity, Roles/Claims.

weedkiller avatar May 16 '20 17:05 weedkiller

We should expand upon the Orchard Core framework facilities.

https://github.com/dodyg/practical-aspnetcore/tree/3.1-LTS/projects/orchard-core

dodyg avatar May 17 '20 12:05 dodyg

Do you also show how to build plug-ins or add your own business entities into orchard. I always considered orchard to be good, but steep learning curve, kinda fuzzy on how to build anything on it.

weedkiller avatar May 21 '20 17:05 weedkiller

It's gotten better now but yeah the documentation on this still needs improvement. It's an amazing framework.

dodyg avatar May 24 '20 09:05 dodyg

A new article on Orchard Core framework

https://bearandhammer.net/2020/05/16/poking-around-with-orchard-core/

dodyg avatar May 28 '20 11:05 dodyg

@dodyg Orchard Core already has samples on mudule + multi tenant scenarios. Link here: https://github.com/OrchardCMS/OrchardCore.Samples

What is needed for PANC (Practical ASP.NET Core) ?

lohithgn avatar Jun 15 '21 01:06 lohithgn

OrchardCore Module system is extensive. It needs to be broken down in multiple samples.

There are basic things such as

Modules

  • What can be shared between components and what can be isolated within each component? how?
  • How do you refer to static resources located module in the main app?
  • How do you deal with the routing between main module and hosting system? It differs between Razor Pages and MVC
  • How do you take dependency on another module?
  • How can you include the built in UI Admin in OrchardCore CMS to enable/disable modules

Multi Tenancy

  • How does Orchard Core define multi-tenancy? We can start from the routing perspective e.g. either from domain/subdomain mapping or subpath (e.g. sass.com/mycompany, saas.com/mycompany2)
  • How do you deal with configuration per tenant? Can it handle multiple connection strings?
  • How do you enable one module for Tenant A but not for Tenant B?

Do you also show how to build plug-ins or add your own business entities into orchard. I always considered orchard to be good, but steep learning curve, kinda fuzzy on how to build anything on it.

This comment by @weedkiller is instructive.

dodyg avatar Jun 15 '21 07:06 dodyg