-
Notifications
You must be signed in to change notification settings - Fork 6k
Bug Report: Duplicate Primary Key Exception in Webauthn4J Authentication #16620
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Labels
in: web
An issue in web modules (web, webmvc)
status: duplicate
A duplicate of another issue
type: bug
A general bug
Comments
@franticticktick can you revise it? |
franticticktick
added a commit
to franticticktick/spring-security
that referenced
this issue
Feb 19, 2025
Closes spring-projectsgh-16620 Signed-off-by: Max Batischev <[email protected]>
Thanks for reporting this, @Borghii. I'll close this in favor of @franticticktick's PR. |
franticticktick
added a commit
to franticticktick/spring-security
that referenced
this issue
Feb 25, 2025
Closes spring-projectsgh-16620 Signed-off-by: Max Batischev <[email protected]>
franticticktick
added a commit
to franticticktick/spring-security
that referenced
this issue
Mar 4, 2025
Closes spring-projectsgh-16620 Signed-off-by: Max Batischev <[email protected]>
franticticktick
added a commit
to franticticktick/spring-security
that referenced
this issue
Mar 7, 2025
Closes spring-projectsgh-16620 Signed-off-by: Max Batischev <[email protected]>
jzheaux
pushed a commit
that referenced
this issue
Mar 7, 2025
Closes gh-16620 Signed-off-by: Max Batischev <[email protected]>
This was referenced Mar 24, 2025
This was referenced Apr 7, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: