You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SSO: Add email-scoped provider discovery for multi-tenant support #358
PR #354 introduced SSO provider discovery, but the current implementation validates the email parameter without using it in the actual provider lookup.
Current Behavior
ssoDiscoverHandler validates the email parameter
getSsoConfig returns the first configured provider without considering email
This means any configured provider returns ssoEnabled=true for all emails
Proposed Solution
For multi-tenant email-scoped routing:
Add email domain matching field to ssoProviders schema
Update getSsoConfig to accept and filter by domain
Update all 6 callers to pass the domain
Alternatively, for single-provider instances, document that email validation is for format checking only.
Activity