Skip to content

Conversation

franticticktick
Copy link
Contributor

Closes gh-16224

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 13, 2024
@rwinch rwinch self-assigned this Dec 13, 2024
@rwinch rwinch added in: web An issue in web modules (web, webmvc) type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Dec 13, 2024
@rwinch rwinch added this to the 6.5.0-M1 milestone Dec 13, 2024
Copy link
Member

@rwinch rwinch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @franticticktick! I've left feedback inline

@rwinch rwinch merged commit fd267df into spring-projects:main Dec 20, 2024
6 checks passed
@rwinch
Copy link
Member

rwinch commented Dec 20, 2024

Thanks for the Pull Request! This is now merged into main 😄

rwinch added a commit that referenced this pull request Jan 18, 2025
kwondh5217 pushed a commit to kwondh5217/spring-security that referenced this pull request Feb 4, 2025
Issue spring-projectsgh-16282

Signed-off-by: Daeho Kwon <trewq231@naver.com>
Copy link

@ziqin ziqin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A CredentialRecord would be updated in every authentication. An existing row should be updated.

Comment on lines +133 to +142
@Override
public void save(CredentialRecord record) {
Assert.notNull(record, "record cannot be null");
List<SqlParameterValue> parameters = this.credentialRecordParametersMapper.apply(record);
try (LobCreator lobCreator = this.lobHandler.getLobCreator()) {
PreparedStatementSetter pss = new LobCreatorArgumentPreparedStatementSetter(lobCreator,
parameters.toArray());
this.jdbcOperations.update(SAVE_CREDENTIAL_RECORD_SQL, pss);
}
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe an insert-or-update is also required here.

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) type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JDBC WebAuthn Repositories
4 participants