Skip to content
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

listIdentities lists identities multiple times with credential_identifier set #3105

Closed
3 of 6 tasks
jonas-jonas opened this issue Feb 15, 2023 · 1 comment · Fixed by #3107
Closed
3 of 6 tasks

listIdentities lists identities multiple times with credential_identifier set #3105

jonas-jonas opened this issue Feb 15, 2023 · 1 comment · Fixed by #3107
Labels
bug Something is not working.

Comments

@jonas-jonas
Copy link
Member

Preflight checklist

Describe the bug

When having identities with multiple credential types, the listIdentities endpoint lists identities once per credential type they have set up.

Reproducing the bug

  1. Create an identity with a password and setup webauthn
  2. Call /admin/identities?credentials_identifier={email_of_the_account}
  3. See the same identity listed twice

Relevant log output

No response

Relevant configuration

No response

Version

master

On which operating system are you observing this issue?

None

In which environment are you deploying?

None

Additional Context

image

@jonas-jonas jonas-jonas added the bug Something is not working. label Feb 15, 2023
@jonas-jonas jonas-jonas changed the title listIdentities lists identities once per credential type (webauthn, password, etc.) listIdentities lists identities multiple times with credential_identifier set Feb 15, 2023
@aeneasr
Copy link
Member

aeneasr commented Feb 15, 2023

A select distinct should fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants