Skip to content

Commit

Permalink
fix: null credentials from providers should be filtered by service
Browse files Browse the repository at this point in the history
  • Loading branch information
matteo-s committed Feb 12, 2025
1 parent 5fd1119 commit c40ce48
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public void setAccessProvider(AccessCredentialsProvider credentialsProvider) {

public List<Credentials> getCredentials(@NotNull UserAuthentication<?> auth) {
log.debug("get credentials from providers for user {}", auth.getName());
List<Credentials> credentials = providers.stream().map(p -> p.get(auth)).toList();
List<Credentials> credentials = providers.stream().map(p -> p.get(auth)).filter(c -> c != null).toList();

if (log.isTraceEnabled()) {
log.trace("credentials: {}", credentials);
Expand Down

0 comments on commit c40ce48

Please sign in to comment.