Skip to content

feat: list user passkeys - #640

Merged
wim07101993 merged 19 commits into
mainfrom
feat/list-passkeys
Jul 31, 2026
Merged

feat: list user passkeys#640
wim07101993 merged 19 commits into
mainfrom
feat/list-passkeys

Conversation

@wim07101993

@wim07101993 wim07101993 commented Jul 27, 2026

Copy link
Copy Markdown
Member

Summary

  • Added list passkeys endpoint

Validation

  • go run ./... -tags postgres_integration

Release notes / changeset

  • Changeset: .changeset/list-user-passkeys.md

Notes

@vercel

vercel Bot commented Jul 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nextgen Ready Ready Preview Jul 31, 2026 7:10am
nextgen-docs Ready Ready Preview Jul 31, 2026 7:10am
nextgen-mock-zitadel Ready Ready Preview Jul 31, 2026 7:10am

Request Review

@github-actions

github-actions Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

🦋 Changeset detected

Latest commit: db707c0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 19 packages
Name Type
@zitadel/server Minor
@zitadel/api Minor
@zitadel/cli Minor
@zitadel/components Minor
@zitadel/config Minor
@zitadel/sdk-angular Minor
@zitadel/sdk-core Minor
@zitadel/sdk-next Minor
@zitadel/sdk-nuxt Minor
@zitadel/sdk-qwik Minor
@zitadel/sdk-react Minor
@zitadel/sdk-solid Minor
@zitadel/sdk-svelte Minor
@zitadel/sdk-vue Minor
@zitadel/server-linux-x64 Minor
@zitadel/server-linux-arm64 Minor
@zitadel/server-darwin-x64 Minor
@zitadel/server-darwin-arm64 Minor
@zitadel/server-win32-x64 Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@wim07101993
wim07101993 marked this pull request as ready for review July 27, 2026 13:41
Copilot AI review requested due to automatic review settings July 27, 2026 13:41
@wim07101993 wim07101993 changed the title Feat/list passkeys feat: list user passkeys Jul 27, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a new user passkeys listing API surface (GET /users/{user_id}/passkeys) to the Go server and generated API client, intended to return a user’s registered passkeys (id, name, created_at) under user.read authorization.

Changes:

  • Introduces UserService.ListPasskeys backed by domain.UserPasskeyRepository.
  • Adds the API handler + OpenAPI spec for GET /users/{user_id}/passkeys and regenerates api/generated/*.
  • Extends integration-test harness to register passkeys via a full virtual WebAuthn ceremony and adds an integration test for listing passkeys.

Reviewed changes

Copilot reviewed 11 out of 25 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
internal/service/user.go Adds passkey repo dependency and implements ListPasskeys service method.
internal/service/flow_create_user_for_passkey_handler_test.go Updates NewUserService call-site for the new constructor signature.
internal/api/user.go Adds ListUserPassKeys HTTP handler and maps domain passkeys to API response.
internal/api/integration_test/user_test.go Adds integration test coverage for the new list-passkeys endpoint.
internal/api/integration_test/helpers/user.go Wires UserPasskeyRepo into the integration-test UserService setup.
internal/api/integration_test/helpers/passkey_registration.go Adds helper to perform passkey registration via virtualwebauthn.
cmd/server/server.go Wires userPasskeyRepo into UserService construction in server startup.
api/openapi/openapi-spec.yaml Registers the new /users/{user_id}/passkeys path in the root OpenAPI doc.
api/openapi/endpoints/users/by_id/passkeys/methods.yaml Defines the new listUserPassKeys operation and response/error shapes.
api/openapi/endpoints/users/by_id/passkeys/list-user-passkeys-response.yaml Defines the 200-response schema for listing passkeys.
api/generated/oas_validators_gen.go Generated validation for the new response type.
api/generated/oas_unimplemented_gen.go Generated unimplemented handler stub for the new operation.
api/generated/oas_server_gen.go Generated server handler interface includes ListUserPassKeys.
api/generated/oas_security_gen.go Generated OAuth2 scope mapping for the new operation.
api/generated/oas_schemas_gen.go Generated schema/response types for list-passkeys operation.
api/generated/oas_router_gen.go Generated router wiring for /users/{user_id}/passkeys.
api/generated/oas_response_encoders_gen.go Generated response encoder for list-passkeys operation.
api/generated/oas_response_decoders_gen.go Generated response decoder for list-passkeys operation (client).
api/generated/oas_parameters_gen.go Generated params struct/decoder for project_id + user_id.
api/generated/oas_operations_gen.go Generated operation name constant for list-passkeys.
api/generated/oas_json_gen.go Generated JSON encoders/decoders for new types.
api/generated/oas_interfaces_gen.go Generated response interface for list-passkeys operation.
api/generated/oas_handlers_gen.go Generated HTTP handler glue for list-passkeys operation.
api/generated/oas_client_gen.go Generated client method ListUserPassKeys.
.changeset/list-user-passkeys.md Declares minor bumps for @zitadel/server and @zitadel/api due to new endpoint.

Comment thread internal/service/user.go Outdated
Comment thread internal/api/user.go Outdated
Comment thread api/openapi/endpoints/users/by_id/passkeys/methods.yaml
Comment thread internal/api/integration_test/user_test.go Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
# Conflicts:
#	internal/storage/v2/dialect/postgres/user_test.go
#	internal/storage/v2/dialect/spanner/user_test.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Frontend: User detail — overview, authentication, and project permissions

3 participants