Skip to content

Add missing tests for Passkey IDP refactoring #4147

Open

Description

@coderabbitai

Context

This issue tracks missing test coverage for the Passkey IDP refactoring introduced in PR #4144.

Missing Test Coverage

The following components were introduced or modified in the refactoring but lack dedicated test coverage:

  1. PasskeyIdentityProviderFactory - The factory class that creates PasskeyIDP instances

    • Location: modules/new_serverpod_auth/serverpod_auth_idp/serverpod_auth_idp_server/lib/src/integrations/passkey_identity_provider_factory.dart
    • Should test: factory construction, configuration passing, and IDP instantiation
  2. PasskeyIDPBaseEndpoint - The abstract base endpoint for Passkey authentication

    • Location: modules/new_serverpod_auth/serverpod_auth_idp/serverpod_auth_idp_server/lib/src/providers/passkey/endpoints/passkey_idp_base_endpoint.dart
    • Should test: createChallenge, register, and login method contracts
  3. PasskeyIDPEndpoint - The example implementation in the auth server

    • Location: examples/auth/auth_server/lib/src/endpoints/passkey_idp_endpoint.dart
    • Should test: endpoint behavior and integration with PasskeyIDPBaseEndpoint

Existing Coverage

The following components already have test coverage:

  • PasskeyIDP (tested in passkey_idp_test.dart)
  • PasskeyIDPAdmin (tested in passkey_idp_admin_test.dart)

Related

Activity

  1. added
    area: authentication
    test
    on Nov 3, 2025
  2. added this to the Post 3.0 release milestone on Nov 3, 2025
  3. removed their assignment
    on Nov 3, 2025
  4. moved this from Inbox 📫 to Backlog 🗂️ in Serverpod Frameworkson Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: authenticationtest

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions