by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Apr 28 11:46
    win32nipuh opened #105
  • Feb 27 20:48
    anthrax3 opened #104
  • Apr 15 2019 02:16
    project-orcon commented #96
  • Apr 08 2019 06:23
    MuratGOZCU closed #103
  • Apr 07 2019 21:13
    Marcel0024 commented #103
  • Jan 21 2019 07:26
    MuratGOZCU opened #103
  • Jan 21 2019 07:19
    MuratGOZCU closed #102
  • Jan 19 2019 22:48
    aldari closed #92
  • Jan 17 2019 04:22
    aceptra closed #53
  • Dec 12 2018 13:24
    MuratGOZCU edited #102
  • Dec 12 2018 13:24
    MuratGOZCU opened #102
  • Dec 05 2018 13:23
    chernihiv commented #96
  • Nov 07 2018 14:14
    flauberjp commented #96
  • Sep 18 2018 16:33
    grayniall commented #96
  • Aug 10 2018 18:46
    ani2479 opened #101
  • Jul 23 2018 16:24
    whizkidwwe1217 commented #88
  • Jul 17 2018 10:31
    whizkidwwe1217 opened #100
  • Jun 29 2018 07:53
    ovidiaconescu commented #96
  • May 21 2018 18:12
    TomBeckett commented #96
  • May 15 2018 20:47
    TomBeckett commented #96
GOVINDA ALWANI
@govi2010
Hello team
John Nyingi
@j0nimost
I have the same question @mebymyself has if anyone has a link to the solution please provide
saikiranguptak53
@saikiranguptak53
i have a requirement mulitple clients login independently with same login credentials for different clients(websites) . Is this possible with identity server 4?
Edwardenis De los santos
@Edwardenis
This Awasome Library is for .net core so I cannot used. Do you know an alternative to implement on MVC 5 App?
Ben Meredith
@bmeredith
@Edwardenis The 0.0.2-pre version of SaasKit uses full framework (MVC 5/WebApi 2) instead of .net core.
Alan Leite de Rezende
@alanrezendee

Good morning guys!
I need to implement the filters in my services to get the data of the tenance you are requesting.
Given this scenario, will I have to inject the tenance resolver into my service and do a where in all methods manually, or is there any native saaskit implementation that solves this?

Example Today:
var accounts = _accountAppService.GetAsync (). Where (x => x.tenantId == _tenantResolver.Id)

Master Whiz
@whizkidwwe1217
@alanrezendee You should inject the TenantContext that holds the Tenant object instead of injecting the tenant resolver
eddyjl077
@eddyjl077
@sulmar Where you able to create this function 'WithPerTenantOptionsConfig' or something similar?
stefano-corricelli
@stefano-corricelli
Is this channel still active ?
Márton Balassa
@BalassaMarton
Hi, is this project active in any way? I like the idea and I have some of my own to contribute.
Reagan Chu
@presiden999_twitter
I'm trying to dding tenant-specific files with SaasKit in ASP.NET Core

and can't find any working example for core 2.0
this was the old code for core 1.0

var routeBuilder = new RouteBuilder(app);
var routeTemplate = "tenant/{*filePath}";
routeBuilder.MapRoute(routeTemplate, (IApplicationBuilder fork) =>
{
//Add middleware to rewrite our path for tenant specific files
fork.UseMiddleware<TenantSpecificPathRewriteMiddleware>();
fork.UseStaticFiles();
});
var router = routeBuilder.Build();
app.UseRouter(router);

but core 2.0 no longer use this. is there anyone with example on how to get this to work

Joe Audette
@joeaudette
@presiden999_twitter I would avoid rewriting and instead if tenant routes need a folder segment in the url use a routecontstraint, that is what we do in cloudscribe, we do use sasskit to resolve the tenant per request and we use it to branch static files middleware per tenant, but most other middleware is singleton and can't be branched in 2.0 and higher. https://www.cloudscribe.com/
Master Whiz
@whizkidwwe1217
Hi, has anyone used SaasKit in ASP.NET Core 3.0?
vodkadom75
@vodkadom75
hi has anyone done any multitenancy handling events, eg event property sets tenant ?
DominicQuickpic
@DominicQuickpic
Does saaskit use websockets?
Sanchit Chawla
@SanchitChawla12_twitter
I am using SAAS Kit and loading tenant information from an external data source, I am planning to implement CachingAppTenantResolver to avoid calling database on every request. But just wanted to check how would i invalidate the cache if tenant is updated/deleted
slacker-king
@slacker-king
this project seems semi-dead. anything better, or at least maintained, out there? I know of cloudscribe from above.
Jeremy Cook
@jeremycook
@whizkidwwe1217 I just created a project ASP.NET Core 3.0 project and used it by following the https://benfoster.io/blog/asp-net-5-multitenancy tutorial. It worked fine.
Master Whiz
@whizkidwwe1217

@jeremycook Yes, it works in 3.0 but you can't override the default dependencies per tenant (https://benfoster.io/blog/asp-net-core-dependency-injection-multi-tenant). In ASP.NET Core 3.0, the way you override ConfigureServices is different. The SaasKit.Multitenancy.StructureMap extension doesn't work in 3.0 anymore. Seems like Microsoft removed the feature (aspnet/AspNetCore#5949).

In 2.2, you can override the ConfigureServices and configure the dependencies per tenant as shown in the code below:

public IServiceProvider ConfigureServices(IServiceCollection services)
{
          var container = new Container();
          container.Populate(services);
          container.ConfigureTenants<AppTenant>((tenant, config) =>
         { 
                    if (tenant.Db == 'MSSQL')
                          config.For<IRepository>().Use<MsSqlRepository>();
                   else
                          config.For<IRepository>().Use<MySqlRepositor>();
         });
          return container.GetInstance<IServiceProvider>();
}
I hope someone can migrate it to 3.0. That would be a big help.
I'm using that feature and it prevents me from updating to ASP.NET Core 3.0.
Jeremy Cook
@jeremycook
@whizkidwwe1217 I've used AddScoped and AddTransient to achieve about the same result, and not worried about the lack of a "tenant" scope. For example:
services.AddScoped<IRepository>(serviceProvider => {
    var tenant = serviceProvider.GetRequiredService<AppTenant>();
    if (tenant.Db == "MSSQL")
        return serviceProvider.GetRequiredService<MsSqlRepository>();
    else
        return serviceProvider.GetRequiredService<MySqlRepository>();
});
Paul Czywczynski
@tempworks-paul
@slacker-king Might checkout this: https://www.finbuckle.com/MultiTenant
asest
@asest
Struggling to find a solution mentioned here though I note somebody else mentioned a similar problem. I am in the process of migrating dotnetcore from 1.0 through all iterations to 3.1. SaasKit app.UsePerTenant<AppTenant>((ctx, builder) => needs moving to services.addmultitenancy - but I can not find any examples. I'm focused mainly on the cookie based authentication as shown here: https://docs.microsoft.com/en-us/aspnet/core/migration/1x-to-2x/identity-2x?view=aspnetcore-3.1
win32nipuh
@win32nipuh
@asest I have tried saaskit but it seems it died. I use the https://www.finbuckle.com/MultiTenant, it is live project, the author develops it and react on issues.