Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

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

Avatar

Level 5

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?

1 Accepted Solution

Avatar

Correct answer by
Level 10
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.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10
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.