Authenticated user UserProperties | Community
Skip to main content
October 16, 2015
Solved

Authenticated user UserProperties

  • October 16, 2015
  • 3 replies
  • 746 views

 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.
Best answer by smacdonald2008

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
smacdonald2008Accepted solution
Level 10
October 16, 2015

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. 

October 16, 2015

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

smacdonald2008
Level 10
October 16, 2015

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