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:
parent
3aef3c4080
commit
4be7f8742a
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue