mirror of
https://github.com/bmlong137/alfresco-keycloak.git
synced 2025-09-10 14:11:09 +00:00
Correct logging
This commit is contained in:
@@ -975,11 +975,9 @@ public class KeycloakAuthenticationFilter extends BaseAuthenticationFilter
|
|||||||
|
|
||||||
if (userId != null)
|
if (userId != null)
|
||||||
{
|
{
|
||||||
LOGGER.debug("We have a previously-cached user with the wrong identity - replace them.");
|
|
||||||
|
|
||||||
if (sessionUser != null && !sessionUser.getUserName().equals(userId))
|
if (sessionUser != null && !sessionUser.getUserName().equals(userId))
|
||||||
{
|
{
|
||||||
LOGGER.debug("Removing the session user, invalidating session.");
|
LOGGER.debug("Session user does not match mapped remote user - invalidating session.");
|
||||||
session.removeAttribute(sessionAttrib);
|
session.removeAttribute(sessionAttrib);
|
||||||
session.invalidate();
|
session.invalidate();
|
||||||
sessionUser = null;
|
sessionUser = null;
|
||||||
|
Reference in New Issue
Block a user