Skip to content

Commit

Permalink
SONAR-24024 Fix diagnostic tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelien-poscia-sonarsource authored and sonartech committed Dec 20, 2024
1 parent 6a0b2f2 commit c770ccb
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 138 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ private static List<String> generateMappingErrors(Saml2AuthenticatedPrincipal pr
return mappingErrors;
}

private static List<String> generateMissingMappingMessages( Map<String, String> mappings, Saml2AuthenticatedPrincipal principal) {
private static List<String> generateMissingMappingMessages(Map<String, String> mappings, Saml2AuthenticatedPrincipal principal) {
return mappings.entrySet()
.stream()
.filter(entry -> !entry.getValue().isEmpty() && (principal.getAttribute(entry.getValue()) == null || principal.getAttribute(entry.getValue()).isEmpty()))
Expand Down
Loading

0 comments on commit c770ccb

Please sign in to comment.