Expand my Community achievements bar.

SOLVED

Authenticated user UserProperties

Avatar

Level 1

 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/

1 Accepted Solution

Avatar

Correct answer by
Level 10

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. 

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

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. 

Avatar

Level 1

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

Avatar

Level 10

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