multi-tenant

Entity Framework and multi-tenancy database design

青春壹個敷衍的年華 提交于 2021-02-06 11:24:40
问题 I am looking at multi-tenancy database schema design for an SaaS concept. It will be ASP.NET MVC -> EF, but that isn't so important. Below you can see an example database schema (the Tenant being the Company). The CompanyId is replicated throughout the schema and the primary key has been placed on both the natural key, plus the tenant Id. Plugging this schema into the Entity Framework gives the following errors when I add the tables into the Entity Model file (Model1.edmx): The relationship

Can multi-tenancy in Keycloak be done within a single realm?

这一生的挚爱 提交于 2021-02-05 20:25:54
问题 First, I'm well aware of the multi-realm approach to multi-tenancy in Keycloak. I've taken over a legacy project where nobody thought of multi-tenancy. Now, two years later, suddenly, the customer needs this feature. Actually, the microservices are prepared for this scenario out-of-the-box. The customer develops a mobile app that authenticates users via API on our keycloak instance with an account number (as username) and a password. Now, he'd like to add an tenant id to the login information

Spring Boot handle multiple MongoTemplates for Multi Cluster MongoDB

心已入冬 提交于 2021-01-29 17:44:11
问题 I have to implement multi-tenancy using spring-boot, mongodb. Previously I was using same cluster so things were simple enough. Now each tenant would have its own database in its own cluster. So I was thinking of having multiple mongoTemplates managed in a single application. My requirements: I wanted all Spring configuration in Java code/annotations. (I hate XML!) I wanted Spring to manage both the Mongo and MongoTemplate objects. I wanted to use MongoRepository Interface beans and have the

asp.net mvc multitenant database per tenant

末鹿安然 提交于 2021-01-29 10:05:15
问题 I'm building an app for our company which needs to have separate database per client. App is for the usage of other multiple companies, so the app needs to identify the company name when the user logs in and make the users operate only within their company db. I have it all set, but the problem is that the app is not able to handle 2 different databases simultaneously. When users from two different companies log in, the first users db gets changed to the db of the second user who is logged in

Is it possible to use django-celery-beat with django-tenant?

穿精又带淫゛_ 提交于 2021-01-28 21:09:36
问题 I am using celery for scheduling tasks. So far everything was fine, including hosted on AWS. However, I decided to transform my single application to multi tenant, using django-tenant. That way, I can create the subdomains perfectly. ./manage.py create_tenant However, when running the command celery -A myproject worker -B , despite not showing me any error, It seems to me that he cannot run for the created schema (test with only one created). I tried to specify the schema, using python manage

argparse.ArgumentError: argument --skip-checks: conflicting option string: --skip-checks

流过昼夜 提交于 2021-01-24 10:50:39
问题 I am working with django-tenant-schemas and when I try to use "migrate_schemas" command I encounter an error. I've seen similar questions here but they didn't help at all. I've tried this on two different apps but the result is the same. Does anybody know how to fix this? Traceback (most recent call last): File "C:\DjangoNew\tenancy\manage.py", line 22, in <module> main() File "C:\DjangoNew\tenancy\manage.py", line 18, in main execute_from_command_line(sys.argv) File "C:\Users\asyey\AppData

argparse.ArgumentError: argument --skip-checks: conflicting option string: --skip-checks

二次信任 提交于 2021-01-24 10:48:28
问题 I am working with django-tenant-schemas and when I try to use "migrate_schemas" command I encounter an error. I've seen similar questions here but they didn't help at all. I've tried this on two different apps but the result is the same. Does anybody know how to fix this? Traceback (most recent call last): File "C:\DjangoNew\tenancy\manage.py", line 22, in <module> main() File "C:\DjangoNew\tenancy\manage.py", line 18, in main execute_from_command_line(sys.argv) File "C:\Users\asyey\AppData

What are the challenges with a user pool per tenant in a an AWS multi-tenant serverless application

守給你的承諾、 提交于 2021-01-24 09:35:08
问题 I am considering creating a user pool per tenant based on the recommended multi-tenant architecture (for ex: https://aws.amazon.com/quickstart/saas/identity-with-cognito/) The rest of the resources in the application are going to be using pooled resources (for ex: API gateway, dynamoDB tables). Considering the silo model just for the Cognito/auth part of the application. Application requirements: Subdomain per tenant i.e. tenant1.company.com an tenant2.company.com A user can belong to

Springboot 2.3.1 dynamically update Jdbc template's schema in Multi-tenant environment

…衆ロ難τιáo~ 提交于 2021-01-18 05:00:57
问题 My Project is on spring-boot-starter-parent - "1.5.9.RELEASE" and I'm migrating it to spring-boot-starter-parent - "2.3.1.RELEASE". This is multi-tenant env application, where one database will have multiple schemas, and based on the tenant-id, execution switches between schemas. I had achieved this schema switching using SimpleNativeJdbcExtractor but in the latest Springboot version NativeJdbcExtractor is no longer available. Code snippet for the existing implementation: @Bean @Scope( value

Springboot 2.3.1 dynamically update Jdbc template's schema in Multi-tenant environment

こ雲淡風輕ζ 提交于 2021-01-18 05:00:27
问题 My Project is on spring-boot-starter-parent - "1.5.9.RELEASE" and I'm migrating it to spring-boot-starter-parent - "2.3.1.RELEASE". This is multi-tenant env application, where one database will have multiple schemas, and based on the tenant-id, execution switches between schemas. I had achieved this schema switching using SimpleNativeJdbcExtractor but in the latest Springboot version NativeJdbcExtractor is no longer available. Code snippet for the existing implementation: @Bean @Scope( value