-
Notifications
You must be signed in to change notification settings - Fork 73
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
fix(jans-auth): User Lookup by jansExtUid fails. #9975
Comments
We should ask @yurem |
To reproduce it easier I written a function that can be placed in any interception script or elsewhere and then be called.
It assumes that their is a static logger named log and everything is imported correctly
I called it from a
and in the
|
We use MySQL as db. I do not know if this is relevant but we currently use the monolith as we are still in a development and testing phase. |
I can confirm, that it works with PostgreSQL where I get the expected:
With MySQL I get the following for the query
|
I will check same it with MySQL too |
It should work well after merging this PR: #10051 |
@tawaren Can you check this issue with MySQL again? |
I can confirm that it now works as intended with mysql. |
Describe the bug
I use the
io.jans.model.user.authenticator.UserAuthenticator
to manage alternative ids and additional attributes required by my person authentication scripts. I have the folloing two code snippets:Since recently I get null from
userService.getUserByAttribute("jansExtUid", jansExtUid)
. If I fetch the user otherwise I can confirm thatgetExternalUid()
andgetAuthenticator()
return the expected values.Expected behavior
I can fetch users over
userService.getUserByAttribute("jansExtUid", jansExtUid)
which have a correspondingUserAuthenticator
setJanssen Version:
The problem appeared in both 1.1.5-1 and 1.1.6_dev
Additional context
This approach is described and recommended under docs/script-catalog/person_authentication/person-authentication.md
It worked for me for quite a while and then sudenly stopped working.
The text was updated successfully, but these errors were encountered: