authenticationFlowContext.getSession().sessions().getUserSessionsStream(context.getRealm(), authenticationFlowContext.getUser()).collect(Collectors.toList()); returns empty list…but using authenticationFlowContext.getSession().sessions().getKeycloakSession().sessions().getUserSessionsStream(authenticationFlowContext.getRealm(), context.getClient()).collect(Collectors.toList()) returns the sessions for the client
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Unable to get users in Cache session in Custom Authenticator | 0 | 373 | December 8, 2022 | |
ClientAuthenticator and UserSessionNote | 0 | 281 | November 16, 2023 | |
Accessing AuthNote or UserSessionNote | 2 | 3308 | February 2, 2023 | |
Call getUserByUsername returns null if the user is created by an external service in the same flow (cache or transaction problem?) | 1 | 34 | January 17, 2025 | |
Get list of associated groups of a user inside a custom Authenticator | 1 | 454 | August 17, 2020 |