Remove Logging of Untrusted Data
This commit is contained in:
		
							parent
							
								
									3307c656f4
								
							
						
					
					
						commit
						fed3de8dce
					
				| 
						 | 
					@ -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;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue