Skip to main content
Oct 16, 2015 2:27 AM UTC
Solved

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/

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 16, 2015 2:27 AM UTC

These are AEM User APIs that should have clear code examples that explains these concepts. I will be adding this use case to the community article list. IN the mean time -- I will dug up code to answer your question. 

3 replies

smacdonald2008
Level 10
Oct 16, 2015 2:27 AM UTC

This functionality needs to be captured in a developer article -- i have tracked it and it will be written. 

Translate
Oct 16, 2015 2:27 AM UTC

so on an author instance its anonymous and then on a publish instance it correct 

Translate
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 16, 2015 2:27 AM UTC

These are AEM User APIs that should have clear code examples that explains these concepts. I will be adding this use case to the community article list. IN the mean time -- I will dug up code to answer your question. 

Translate