Enhancing Multi-Tenant Authentication: Preventing Ambiguous Logins
In the motos-max-cordialidad project, we recently addressed a critical security concern related to our multi-tenant authentication mechanism. The goal was to ensure a robust and deterministic user login experience, especially when a tenantId was not explicitly provided during the authentication attempt.
The Problem
Our system allows users to exist across multiple tenants, such as