WIP - improve login to tenants by domains

This commit is contained in:
Francisco Gaona
2025-12-24 11:42:44 +01:00
parent 2bc672e4c5
commit b9fa3bd008
3 changed files with 69 additions and 8 deletions

View File

@@ -55,10 +55,7 @@ export class AuthController {
) {
const subdomain = req.raw?.subdomain;
console.log('subdomain:' + subdomain);
console.log('CENTRAL_SUBDOMAINS:', process.env.CENTRAL_SUBDOMAINS);
// If it's a central subdomain, tenantId is not required
if (!subdomain || !this.isCentralSubdomain(subdomain)) {
if (!tenantId) {