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
Empty allowedEmailRegistrationDomains blocks all OAuth self-signups #27178
After PR #25391 introduced domain validation in the OAuth self-signup flow, an empty allowedEmailRegistrationDomains array ([]) blocks all new user registrations via OAuth instead of allowing them.
Root Cause
The domain check in AuthenticationCodeFlowHandler.getOrCreateOidcUser() (line 932) does not account for an empty set:
Set<String> allowedDomains = authorizerConfiguration.getAllowedEmailRegistrationDomains();
if (allowedDomains != null
&& !allowedDomains.contains("all")
&& !allowedDomains.contains(domain)) {
thrownewAuthenticationException("Email domain not allowed for self-signup: " + domain);
}
An empty Set is not null, doesn't contain "all", and doesn't contain any domain — so every signup is rejected.
The JSON schema defaults this field to [], meaning any deployment that didn't explicitly configure it now silently blocks all OAuth self-registrations.
Impact
Regression from prior behavior where empty [] meant "no domain restrictions"
Since 1.12, this field is no longer exposed in the UI (removed due to user confusion with principalDomain and allowedDomains), making it impossible to fix without a direct API call to PATCH /api/v1/system/security/config
Any customer upgrading to a version with this change will have broken OAuth self-signup if allowedEmailRegistrationDomains was left at the default
Activity
fix(auth): treat empty allowedEmailRegistrationDomains as no restrict…
fix(auth): treat empty allowedEmailRegistrationDomains as no restrict…
fix(auth): treat empty allowedEmailRegistrationDomains as no restrict…
fix(auth): treat empty allowedEmailRegistrationDomains as no restrict…