From 5571ad1b27f3c46904b1b920aa70efb1d33811a7 Mon Sep 17 00:00:00 2001 From: Tomas Borghi <137845283+Borghii@users.noreply.github.com> Date: Mon, 24 Mar 2025 13:18:23 -0300 Subject: [PATCH] Fix issues identified in PR review Signed-off-by: Tomas Borghi <137845283+Borghii@users.noreply.github.com> --- .../webauthn/management/Webauthn4JRelyingPartyOperations.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/src/main/java/org/springframework/security/web/webauthn/management/Webauthn4JRelyingPartyOperations.java b/web/src/main/java/org/springframework/security/web/webauthn/management/Webauthn4JRelyingPartyOperations.java index e31cb44c0e..228a385a7f 100644 --- a/web/src/main/java/org/springframework/security/web/webauthn/management/Webauthn4JRelyingPartyOperations.java +++ b/web/src/main/java/org/springframework/security/web/webauthn/management/Webauthn4JRelyingPartyOperations.java @@ -346,8 +346,7 @@ public class Webauthn4JRelyingPartyOperations implements WebAuthnRelyingPartyOpe } private List findCredentialRecords(Authentication authentication) { - AuthenticationTrustResolver trustResolver = new AuthenticationTrustResolverImpl(); - if (authentication == null || trustResolver.isAnonymous(authentication)) { + if (authentication == null || this.trustResolver.isAnonymous(authentication)) { return Collections.emptyList(); } PublicKeyCredentialUserEntity userEntity = this.userEntities.findByUsername(authentication.getName());