userinfo component picks up anonymous user all the time in cq5.6.1 | Community
Skip to main content
New Participant
October 16, 2015
Solved

userinfo component picks up anonymous user all the time in cq5.6.1

  • October 16, 2015
  • 1 reply
  • 502 views

I am trying to implement login functionality in our website.

I have written java code for custom login functionality by overlaying OOTB login component.

when I log in using the component the authentication succeeds...it shows in logs that it was able to log in with the user creds provided.

However the userinfo component which is included in top level header component, somehow picks up anonymous user all the time(in both author as well as publish)

On successful login I am redirecting to homepage which has userinfo included.

On login instead of showing myProfile and signOut option it still shows signIn signup combination, so in java code logs it shows user as myuser but on header page i get anonymous user.

am I missing something?

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
See this community article. It points to a GITHub project with a sample that shows this use case. Plus - Justin talks about this in a webinar for secure web sites: https://helpx.adobe.com/experience-manager/using/secure_sites.html The link to the webinar is at the table in the beginning of the article.

1 reply

smacdonald2008
smacdonald2008Accepted solution
New Participant
October 16, 2015
See this community article. It points to a GITHub project with a sample that shows this use case. Plus - Justin talks about this in a webinar for secure web sites: https://helpx.adobe.com/experience-manager/using/secure_sites.html The link to the webinar is at the table in the beginning of the article.