Remove @loreal.com domain restriction for SSO — Azure AD tenant is the gatekeeper

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Vadym Samoilenko 2026-03-10 20:08:02 +00:00
parent 3aef3c4080
commit 4be7f8742a

View file

@ -129,7 +129,7 @@ async function ssoLogin(req, res) {
}
const email = (claims.preferred_username || claims.email || '').toLowerCase();
if (!isLorealEmail(email)) return res.status(403).json({ error: 'Only @loreal.com accounts are allowed.' });
// Azure AD tenant membership is already the gate — no domain restriction for SSO
const user = await db.upsertSsoUser({
email,