Skip to content

Commit

Permalink
Remove DomainExtractor email verification check as it is performed el…
Browse files Browse the repository at this point in the history
…sewhere (#261)
  • Loading branch information
kalda341 authored Jul 26, 2024
1 parent 5677e6a commit 46245cb
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -27,10 +26,6 @@ Optional<Domain> 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);
}

Expand Down

0 comments on commit 46245cb

Please sign in to comment.