Skip to content

Commit fed3de8

Browse files
committed
Remove Logging of Untrusted Data
1 parent 3307c65 commit fed3de8

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Diff for: oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/authentication/JwtIssuerAuthenticationManagerResolver.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,7 @@ public AuthenticationManager resolve(String issuer) {
227227
return authenticationManager;
228228
}
229229
else {
230-
this.logger.debug(LogMessage
231-
.format("Did not resolve AuthenticationManager since issuer is not trusted", issuer));
230+
this.logger.debug("Did not resolve AuthenticationManager since issuer is not trusted");
232231
}
233232
return null;
234233
}

Diff for: oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/authentication/JwtIssuerReactiveAuthenticationManagerResolver.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,7 @@ static class TrustedIssuerJwtAuthenticationManagerResolver
221221
@Override
222222
public Mono<ReactiveAuthenticationManager> resolve(String issuer) {
223223
if (!this.trustedIssuer.test(issuer)) {
224-
this.logger.debug(LogMessage
225-
.format("Did not resolve AuthenticationManager since issuer is not trusted", issuer));
224+
this.logger.debug("Did not resolve AuthenticationManager since issuer is not trusted");
226225
return Mono.empty();
227226
}
228227
// @formatter:off

0 commit comments

Comments
 (0)