Skip to content

Commit

Permalink
comment about internal and external client auth
Browse files Browse the repository at this point in the history
  • Loading branch information
strehle committed Oct 17, 2023
1 parent be41362 commit 7d19c85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ protected void additionalAuthenticationChecks(UserDetails userDetails, UsernameP
break;
}
} else if (ObjectUtils.isEmpty(authentication.getCredentials())) {
// set none as client_auth_method for all usage of empty secrets, e.g. cf client
// set internally empty as client_auth_method e.g. cf client
setAuthenticationMethod(authentication, CLIENT_AUTH_EMPTY);
}
if (uaaClient.getPassword() == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ private CompositeToken createCompositeToken(String tokenId,

private static Map<String, Object> addRootClaimEntry(Map<String, Object> additionalRootClaims, String entry, String value) {
Map<String, Object> claims = additionalRootClaims != null ? additionalRootClaims : new HashMap<>();
// set externally none as client_auth_method if internally empty
claims.put(entry, CLIENT_AUTH_EMPTY.equals(value) ? CLIENT_AUTH_NONE : value);
return claims;
}
Expand Down

0 comments on commit 7d19c85

Please sign in to comment.