We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b996c6 commit c6a534cCopy full SHA for c6a534c
ldap/src/main/java/org/springframework/security/ldap/userdetails/LdapUserDetailsImpl.java
@@ -133,7 +133,7 @@ public String toString() {
133
sb.append("CredentialsNonExpired: ").append(this.credentialsNonExpired).append("; ");
134
sb.append("AccountNonLocked: ").append(this.accountNonLocked).append("; ");
135
136
- if (this.getAuthorities() != null) {
+ if (this.getAuthorities() != null && !this.getAuthorities().isEmpty()) {
137
sb.append("Granted Authorities: ");
138
boolean first = true;
139
0 commit comments