Skip to content

Commit 6adcf4a

Browse files
committed
fix(auth): treat empty allowedEmailRegistrationDomains as no restrictions
1 parent 61ec751 commit 6adcf4a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

openmetadata-service/src/main/java/org/openmetadata/service/security/AuthenticationCodeFlowHandler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -926,6 +926,7 @@ private User getOrCreateOidcUser(String userName, String email, Map<String, Obje
926926
// Validate email domain against allowed registration domains
927927
Set<String> allowedDomains = authorizerConfiguration.getAllowedEmailRegistrationDomains();
928928
if (allowedDomains != null
929+
&& !allowedDomains.isEmpty()
929930
&& !allowedDomains.contains("all")
930931
&& !allowedDomains.contains(domain)) {
931932
LOG.warn(

0 commit comments

Comments
 (0)