Remove Logging of Untrusted Data

This commit is contained in:
Josh Cummings 2023-08-07 14:39:17 -06:00
parent 3307c656f4
commit fed3de8dce
2 changed files with 2 additions and 4 deletions

View File

@ -227,8 +227,7 @@ public final class JwtIssuerAuthenticationManagerResolver implements Authenticat
return authenticationManager; return authenticationManager;
} }
else { else {
this.logger.debug(LogMessage this.logger.debug("Did not resolve AuthenticationManager since issuer is not trusted");
.format("Did not resolve AuthenticationManager since issuer is not trusted", issuer));
} }
return null; return null;
} }

View File

@ -221,8 +221,7 @@ public final class JwtIssuerReactiveAuthenticationManagerResolver
@Override @Override
public Mono<ReactiveAuthenticationManager> resolve(String issuer) { public Mono<ReactiveAuthenticationManager> resolve(String issuer) {
if (!this.trustedIssuer.test(issuer)) { if (!this.trustedIssuer.test(issuer)) {
this.logger.debug(LogMessage this.logger.debug("Did not resolve AuthenticationManager since issuer is not trusted");
.format("Did not resolve AuthenticationManager since issuer is not trusted", issuer));
return Mono.empty(); return Mono.empty();
} }
// @formatter:off // @formatter:off