3,115 questions
0
votes
0
answers
69
views
'django.db.utils.ProgrammingError: relation "users_user" does not exist' error while running ' python manage.py migrate_schemas --shared'
AccrediDoc - Multi-tenant Accreditation Management System
A comprehensive Django-based multi-tenant accreditation management system designed for healthcare organizations in India. Manage NABL, NABH, ...
1
vote
1
answer
65
views
How to handle error during customized scoped dependency injection
I have applied the multi-tenant location for EF Core database applying customize schema per tenant in my ASP.NET Core Web API project.
To do that the client send request through the API by setting ...
0
votes
0
answers
45
views
Unable to acquire new SharePoint Online access token across tenants in Azure AD SSO app (AADSTS50076 MFA error)
We have an Azure AD Single Sign-On (SSO) .NET 8 Core application that transfers documents from one SharePoint tenant to another.
Based on the selected tenant, we retrieve sites, libraries, etc.
We ...
2
votes
0
answers
83
views
Hibernate @TenantId not applied to update/delete statements in discriminator-based multitenancy
I’m experimenting with Spring Data and Hibernate to implement multi-tenancy in an existing app using a discriminator column with @TenantId on the entities. I have seen that hibernate includes tenant ...
1
vote
0
answers
61
views
Is it possible to use Camunda 7 with multi-tenancy by schema using only one ProcessEngine?
I’m working with Camunda 7.23 and I need multi-tenancy by schema (each tenant has its own database schema, but all share the same application).
The official documentation states that job execution is ...
0
votes
0
answers
109
views
How to Support SAML Multitenancy with spring-security-saml2-service-provider 6.3.9 and Microsoft Entra?
We want to publish a multitenant app for external tenant users. Right now, We've already established a single-tenant mechanism for our web application using spring-security-saml2-service-provider 6.3....
0
votes
0
answers
131
views
How to safely override Laravel's CacheManager to support tenant-aware cache in Stancl Tenancy?
I'm using the stancl/tenancy package in a Laravel v12 application and need to apply tenant-specific scoping to cached values. By default, the package overrides Laravel's CacheManager to apply tags() ...
0
votes
0
answers
32
views
StaleObjectStateException while try save entity in multi-tenancy application
I have an application with column-base multi-tenancy.
There was a need to update the dependency version Hibernate 6.3.0.CR1 → 6.6.13.Final. I did everything according to the migration guide.
After the ...
0
votes
0
answers
87
views
Dusk + Docker + Multitenancy: How to run tests on custom subdomains like companyx.localhost?
I'm working on a Laravel application that uses multitenancy with subdomains, running inside Docker (Laravel Sail). I'm trying to run browser-based tests using Laravel Dusk, but I'm facing an issue ...
0
votes
1
answer
195
views
How to apply multi-tenant filtering (e.g., hospitalId) using Hibernate filters with Spring Data JPA in the same database and schema?
I’m building a multi-tenant Spring Boot application where all tenants share the same database and schema, but data is separated by a hospital_id column in each table.
Here’s my setup:
Same database
...
-2
votes
1
answer
113
views
Storing database credentials for a multi-tenant application with few tenants [closed]
I realize this has been asked before and we've read through the posts, but our scenario is a bit unique. We are building a multi-tenant application, using a main database for shared data and client ...
0
votes
0
answers
37
views
Keycloak SSO with multi-tenant .NET api & Angular
I need some recommendations for a multi-tenant project I'm working on, and I'm facing an issue with our Keycloak setup.
Our backend is a .NET API and our frontend is built with Angular. Currently, we ...
0
votes
0
answers
53
views
Is it possible for realms to be stored in different databases?
Keycloak supports multitenancy at the user level via external storage and UserStorageSPI. Can realms similarly be stored in separate databases instead of a single Keycloak database?
Our use case ...
0
votes
0
answers
27
views
Implementing Tenancy in Secret Manager Within a Single GCP Project
We want to implement tenancy in Secret Manager within a single GCP project. The approach we’re considering is:
Using different service accounts for each tenant.
Granting each service account access ...
0
votes
1
answer
54
views
Issue with Accessing Domain Objects After Dynamically Adding a Tenant in a Multi-Tenant Grails Application
I am developing a multi-tenant application using the schema-per-tenant approach in Grails 3.3.18. The new tenant schema is created successfully when I dynamically add a tenant. However, when I attempt ...
1
vote
2
answers
372
views
FastAPI Middleware for Postgres Multi-Tenant Schema Switching Causes Race Conditions with Concurrent Requests
I'm building a multi-tenant FastAPI application that uses PostgreSQL schemas to separate tenant data. I have a middleware that extracts an X-Tenant-ID header, looks up the tenant's schema, and then ...
0
votes
1
answer
80
views
Using quarkus OIDC Multitenancy, is it possible to extract tenantId from grpc call metadata?
I'm using TenantConfigResolver to set the tenantId dynamically
@ApplicationScoped
public class PartitionTenantResolver implements TenantConfigResolver {
@Override
public Uni<OidcTenantConfig> ...
0
votes
0
answers
66
views
Auditing fields return null after updating entity(save()) in multitenant Spring Data JPA app
I'm working with a multitenant Spring Boot app using Spring Data JPA and Hibernate. My entity has auditing fields (@CreatedBy, @CreatedDate, @LastModifiedBy, @LastModifiedDate) populated via @...
3
votes
0
answers
179
views
Laravel Sanctum CSRF Token Cookies Invalid Domain with Multi-tenant SPA Setup
Issue
I'm building a SPA that needs to authenticate with a Laravel back-end using Sanctum. I'm using the stancl/tenancy package for multi-tenancy, where each tenant has their own subdomain. However, ...
0
votes
1
answer
170
views
Trouble using JPA with TenantID column in Spring Boot
I'm trying to create a multi-tenancy system for my CRM system. Basically every company using the software has their own sets of tables(aside from the tenants table itself).
I would like to separate ...
0
votes
1
answer
135
views
Applying EF Core Global Filter to a collection of tenants instead of a single TenantId
I'm implementing multi-tenancy in my ASP.NET Core application with Entity Framework Core. I already have a solution that applies global query filters to entities with a single TenantId, as shown below:...
0
votes
0
answers
24
views
Use PhysicalNamingStrategy on underlying DataSources of AbstractRoutingDataSource
i am using spring-boot with hibernate's PhysicalNamingStrategy together with a AbstractRoutingDataSource from spring and MS SQL Server. The goal is to have a dynamic schema switching for different ...
0
votes
0
answers
38
views
Sequelize ORM: Dynamically set database schema for sequelizeInstance (or repositories) at runtime?
For our SaaS API we use schema-based multitenancy, which means every customer (~tenant) has its own separate schema within the same (MySQL) database, without interfering with other customers. Each ...
0
votes
1
answer
85
views
Error: The dependencies of some of the beans in the application context form a cycle
I am implementing a multi-tenant architecture in my Spring application. The ConfigurationDataSource class is used to provide a DataSource when the application starts. Below is the detailed ...
0
votes
0
answers
19
views
Spring boot Datasource creation issue in Multitenancy
We are basically trying to acheive password change without restart of service as defined in https://blog.jdriven.com/2021/06/configure-hikari-connection-pool-when-using-rds-iam/
Implemented the class ...