Leiste mit Community-Erfolgen erweitern.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.

GELÖST

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 Akzeptierte Lösung

Avatar

Korrekte Antwort von
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.

Lösung in ursprünglichem Beitrag anzeigen

1 Antwort

Avatar

Korrekte Antwort von
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.