浏览代码

Fix issues identified in PR review

Signed-off-by: Tomas Borghi <137845283+Borghii@users.noreply.github.com>
Tomas Borghi 5 月之前
父节点
当前提交
5571ad1b27

+ 1 - 2
web/src/main/java/org/springframework/security/web/webauthn/management/Webauthn4JRelyingPartyOperations.java

@@ -346,8 +346,7 @@ public class Webauthn4JRelyingPartyOperations implements WebAuthnRelyingPartyOpe
 	}
 
 	private List<CredentialRecord> 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());