Fix issues identified in PR review

Signed-off-by: Tomas Borghi <137845283+Borghii@users.noreply.github.com>
This commit is contained in:
Tomas Borghi 2025-03-24 13:18:23 -03:00 committed by GitHub
parent e3a715b8f5
commit 5571ad1b27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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());