diff --git a/powerauth-java-server/src/main/java/io/getlime/security/powerauth/app/server/service/fido2/PowerAuthAssertionProvider.java b/powerauth-java-server/src/main/java/io/getlime/security/powerauth/app/server/service/fido2/PowerAuthAssertionProvider.java index 439c3d6ae..0fe671f84 100644 --- a/powerauth-java-server/src/main/java/io/getlime/security/powerauth/app/server/service/fido2/PowerAuthAssertionProvider.java +++ b/powerauth-java-server/src/main/java/io/getlime/security/powerauth/app/server/service/fido2/PowerAuthAssertionProvider.java @@ -282,7 +282,7 @@ private Map prepareAdditionalData( final Map additionalData = new LinkedHashMap<>(); additionalData.put(ATTR_ACTIVATION_ID, authenticatorDetail.getActivationId()); additionalData.put(ATTR_APPLICATION_ID, authenticatorDetail.getApplicationId()); - additionalData.put(ATTR_CREDENTIAL_ID, authenticatorData.getAttestedCredentialData().getCredentialId()); + additionalData.put(ATTR_CREDENTIAL_ID, authenticatorDetail.getCredentialId()); additionalData.put(ATTR_AUTH_FACTOR, supportedSignatureType(authenticatorDetail, authenticatorData.getFlags().isUserVerified())); additionalData.put(ATTR_ORIGIN, clientDataJSON.getOrigin()); additionalData.put(ATTR_TOP_ORIGIN, clientDataJSON.getTopOrigin());