Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
strehle committed Sep 25, 2023
1 parent 0649c5e commit 5820ce9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ protected void additionalAuthenticationChecks(UserDetails userDetails, UsernameP
((UaaAuthenticationDetails) authentication.getDetails()).setAuthenticationMethod(CLIENT_AUTH_NONE);
break;
}
} else if (ObjectUtils.isEmpty(authentication.getCredentials())) {
// set none as client_auth_method for all usage of empty secrets, e.g. cf client
setAuthenticationMethod(authentication, CLIENT_AUTH_EMPTY);
}
if (uaaClient.getPassword() == null) {
error = new BadCredentialsException("Missing credentials");
Expand Down

0 comments on commit 5820ce9

Please sign in to comment.