Questions tagged [saaskit]

12 questions
14
votes
3 answers

Register authentication schemes based on tenant in asp.net core 3.1

Currently, I have created an Identity server 4 web application with external login providers with default client id and secrets. But my goal is to register the authentication providers like Azure, Google, Facebook based on tenant. I have used…
4
votes
2 answers

Multitenancy in ASP.NET Core 2.0+

Bakground: I want to develop a multi-tenant application in ASP.NET Core and have been looking into Ben Fosters Saaskit library which seems to provide good solutions for common problems in multitenancy applications. Problem: The SaasKit have a…
Jonas
  • 3,155
  • 5
  • 35
  • 55
3
votes
1 answer

MultiTenant custom ILogger - cannot consume scoped service from singleton

i'm trying to add tenant name to every log done by asp.net core. Im using Sasskit for multi-tenant. And im getting some scope problems. I would like some feedback on how i can get this to work: This is my custom logger: public class…
Marcel
  • 954
  • 8
  • 22
2
votes
0 answers

Entity Framework Core - Add-Migration with DbContext parameter constructor

I am creating a Multi Tenant webapi using SaaSKit, I am able to configure everything exactly as I wanted, however I need to run the commands in the Package Manager Console, the main one of them would be to add the migrations in the database used for…
1
vote
0 answers

Resolve a multiTenant Service outside asp.net core pipeline

Our project is using multitenancy to resolve some Service, lets say MyService based on SaasKit. We also have a background task, which shares some of it's dependencies with the asp.net core controllers. In the background task, any object that depends…
Alireza
  • 5,421
  • 5
  • 34
  • 67
1
vote
0 answers

MassTransit integration with SaasKit: How to generate the tenant when consuming messages?

I'm integrating MassTransit on a solution that uses SaasKit to implement multi-tenancy. My DbContext uses the method of defining the connection string in "OnConfiguring" as described…
1
vote
0 answers

404 Error while Sync Server in SAAS

I am having problem while i sync the server and this type of error message is displayed. i am using apache2 server ServerAdmin webmaster@localhost ServerName o9.local ServerAlias *.o9.local ProxyRequests…
0
votes
1 answer

Saas file is not compiling

I am trying to compile a saas file by a css file but is does not compile. I am writing css inside saas file but it does not show any output changes but if i put the css inside style.css its working properly. I think conneection between css and…
Mir Rahat
  • 51
  • 1
  • 6
0
votes
0 answers

ASP.NET Core DI unable to resolve service for type

I am creating an application using ASP.NET Core. In which I have created a custom ApplicationUserManager along with a couple of services. Also, I am using SAAS Kit for multitenancy. But I am stuck with an error which says unable to resolve…
0
votes
2 answers

Using mutitenancy with identity server 4

We are trying to use saaskit with Identity Server 4 to make multi-tenant application using Identity Server. Our requirement is as follows. We have common login page for all clients. However, once client user will get logged in, we are showing the…
XamDev
  • 3,377
  • 12
  • 58
  • 97
0
votes
1 answer

InvalidOperationException: Unable to resolve service for type

I am using saaskit multi tenancy project for multi tenant application. I am able to create the tenant context and able to access in all controllers. However, sometimes it give me following error An unhandled exception has occurred: Unable to…
XamDev
  • 3,377
  • 12
  • 58
  • 97
0
votes
1 answer

Why is AppTenant null only while seeding data?

I'm currently fiddeling around with Ben Fosters Saaskit. I have extended the ApplicationUser with a AppTenantId property and created a custom UserStore, which uses the AppTenant to identify the user: public class TenantEnabledUserStore :…
Marco
  • 22,856
  • 9
  • 75
  • 124