Skip to content

Conversation

MackinnonBuck
Copy link
Member

Summary

Fixes an issue where UserStore doesn't apply updates to a passkey's name after its initial creation.

Details

The issue was only present in UserStore, as UserOnlyStore was already implemented correctly. I've added extra tests to protected against similar implementation inconsistencies.

Fixes #63923

@Copilot Copilot AI review requested due to automatic review settings October 10, 2025 01:38
@github-actions github-actions bot added the area-identity Includes: Identity and providers label Oct 10, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a bug in the ASP.NET Core Identity UserStore where passkey name updates were not being persisted after initial creation. The fix ensures that both UserStore and UserOnlyStore implementations have consistent behavior when updating passkey properties.

  • Adds missing userPasskey.Data.Name = passkey.Name assignment in UserStore.AddOrUpdatePasskeyAsync
  • Updates test configurations to use Identity schema version 3 to enable passkey functionality
  • Adds comprehensive test coverage for passkey operations including name updates

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/Identity/EntityFrameworkCore/src/UserStore.cs Fixes the missing passkey name update and adds null check for credentialId parameter
src/Identity/EntityFrameworkCore/src/UserOnlyStore.cs Adds null check for credentialId parameter for consistency
src/Identity/Specification.Tests/src/IdentitySpecificationTestBase.cs Enables schema version 3 and adds comprehensive passkey test coverage
src/Identity/Specification.Tests/src/UserManagerSpecificationTests.cs Enables schema version 3 for passkey support
src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreTest.cs Updates test configuration and removes unnecessary blank line
src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreWithGenericsTest.cs Configures schema version 3 for testing
src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreEncryptPersonalDataTest.cs Enables schema version 3
src/Identity/EntityFrameworkCore/test/EF.Test/SqlStoreTestBase.cs Configures schema version 3 for tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-identity Includes: Identity and providers

1 participant