Authenticated user UserProperties
We are authenticating a user using the /j_security_check and then adapting the sling request to UserProperties and UserPropertiesUtil.isAnonymous and always returning true and the username is anonymous and not the name that was logged in
code example
UserPropertiesUtil..isAnonymous(slingRequest)
is always true when logged in as admin or any other created user that sits under /home/users/