Bug Report: Duplicate Primary Key Exception in Webauthn4J Authentication #16620
Labels
in: web
An issue in web modules (web, webmvc)
status: duplicate
A duplicate of another issue
type: bug
A general bug
Describe the Bug
When attempting to authenticate using the following method:
public PublicKeyCredentialUserEntity authenticate(RelyingPartyAuthenticationRequest request)
from Webauthn4JRelyingPartyOperations the process follows these steps:
CredentialRecord existingCredential = this.userCredentials.findByCredentialId(credentialId);
this.userCredentials.save(userCredential);
However, the save method attempts to execute the following SQL insert:
This results in a duplicate primary key exception, as the credential record already exists in the database.
I don't know if I'm missing something.
The text was updated successfully, but these errors were encountered: