Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Implement custom identity query #41

Closed
MarkusThielker opened this issue Dec 26, 2024 · 0 comments · Fixed by #50
Closed

Implement custom identity query #41

MarkusThielker opened this issue Dec 26, 2024 · 0 comments · Fixed by #50
Assignees
Labels
dashboard This issue is related to the dashboard UI enhancement New feature or request
Milestone

Comments

@MarkusThielker
Copy link
Owner

Description

Right now, querying for an identity using the identifier is using Kratos' List Identities endpoint with the experimental preview_credentials_identifier_similar query param. This endpoint doesn't provide the search features I would want for searching an identity.

It basically matches using a startsWith(<query>) instead of an === query.

This is why I will implement a custom query function by directly connecting to the Kratos DB using Drizzle ORM. With that I can query on identitfiers, credentials, traits and more and provide a reliable query to find an identity.

The query will have to be tested on big datasets to make sure it is fast and also doesn't slow down Kratos.

@MarkusThielker MarkusThielker added enhancement New feature or request dashboard This issue is related to the dashboard UI labels Dec 26, 2024
@MarkusThielker MarkusThielker added this to the v0.2.0 milestone Dec 26, 2024
@MarkusThielker MarkusThielker self-assigned this Jan 3, 2025
@MarkusThielker MarkusThielker linked a pull request Jan 4, 2025 that will close this issue
MarkusThielker added a commit that referenced this issue Jan 4, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
dashboard This issue is related to the dashboard UI enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant