Skip to content

Commit

Permalink
Logs
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalLike committed Oct 13, 2024
1 parent ca89dec commit 717817f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ public LoggingOidcAuthorizationCodeAuthenticationProvider(
*/
@Override
public Authentication authenticate(Authentication authentication) throws AuthenticationException {
Log.debug(Geonet.SECURITY,"DEBUG HOME MADE " + authentication.getCredentials().toString());
Log.debug(Geonet.SECURITY,"DEBUG HOME MADE " + authentication.getDetails().toString());
Authentication result = super.authenticate(authentication);
log((OAuth2LoginAuthenticationToken) result);
if (oidcConfiguration.isLogSensitiveInformation() && (authentication instanceof OAuth2LoginAuthenticationToken)) {
log((OAuth2LoginAuthenticationToken) result);
}
Expand Down

0 comments on commit 717817f

Please sign in to comment.