Hello,
We have a Jmix 2.2.3 application with reverse proxy, LDAP Authentication and CustomUserSynchronizationStrategy for creating users on their first login with LDAP credentials.
We are facing an issue where 3 out of 4 times that a user is trying to login for 1st time in the application, he gets RuntimeException: Authentication principal must be UserDatails
. After some debugging we saw that SecurityContextHelper.getAuthentication()
returns AnonymousUser.
After 3-4 tries the user successfully logs in and his user is being created.
Can you please help us to resolve this issue?
Thank you,
Ilias