Skip to content

Commit 5bf66c3

Browse files
committed
Polish logging in OAuth2ClientAuthenticationFilter
Closes gh-2025
1 parent 0e4f8b5 commit 5bf66c3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/web/OAuth2ClientAuthenticationFilter.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020-2024 the original author or authors.
2+
* Copyright 2020-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -192,10 +192,6 @@ private void onAuthenticationSuccess(HttpServletRequest request, HttpServletResp
192192
SecurityContext securityContext = SecurityContextHolder.createEmptyContext();
193193
securityContext.setAuthentication(authentication);
194194
SecurityContextHolder.setContext(securityContext);
195-
if (this.logger.isDebugEnabled()) {
196-
this.logger.debug(LogMessage.format("Set SecurityContextHolder authentication to %s",
197-
authentication.getClass().getSimpleName()));
198-
}
199195
}
200196

201197
private void onAuthenticationFailure(HttpServletRequest request, HttpServletResponse response,

0 commit comments

Comments
 (0)