From 46245cb8e8a87c0ccb2fb4ae208ec5f7b0117b28 Mon Sep 17 00:00:00 2001 From: Max Lay Date: Fri, 26 Jul 2024 17:51:52 +1000 Subject: [PATCH] Remove DomainExtractor email verification check as it is performed elsewhere (#261) --- .../java/io/phasetwo/service/auth/idp/DomainExtractor.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/java/io/phasetwo/service/auth/idp/DomainExtractor.java b/src/main/java/io/phasetwo/service/auth/idp/DomainExtractor.java index aabf2ecc..6f8dba88 100755 --- a/src/main/java/io/phasetwo/service/auth/idp/DomainExtractor.java +++ b/src/main/java/io/phasetwo/service/auth/idp/DomainExtractor.java @@ -9,7 +9,6 @@ final class DomainExtractor { private static final Logger LOG = Logger.getLogger(DomainExtractor.class); - private static final String EMAIL_ATTRIBUTE = "email"; private final HomeIdpDiscoveryConfig config; @@ -27,10 +26,6 @@ Optional extractFrom(UserModel user) { LOG.warnf("Could not find user attribute '%s' for user '%s'", config.userAttribute(), user.getId()); return Optional.empty(); } - if (EMAIL_ATTRIBUTE.equalsIgnoreCase(config.userAttribute()) && !user.isEmailVerified()) { - LOG.warnf("Email address of user '%s' is not verified", user.getId()); - return Optional.empty(); - } return extractFrom(userAttribute); }