Repository navigation
Implementation of UserQueryProvider #42302
havarnov
started this conversation in
API guidelines
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I want to implement the UserQueryProvider interface for my custom UserStorage, specifically to be able to find users by username (exact):
My implementation is as follows, as you can see it only supports USERNAME && EXACT.
This works, but if the username already exists in the local database (Keycloaks database) the request above will return the user twice. I guess that Keycloak calls
searchForUserStream()on both the local storage and my custom UserStorage?What I'm a doing wrong? (My current work-around is to only return the user from my custom implementation if it's not in the local storage from before.
All reactions