Cookie Authentication in CQ | Community
Skip to main content
October 16, 2015
Solved

Cookie Authentication in CQ

  • October 16, 2015
  • 4 replies
  • 1663 views
I want to authenticate the CQ user through cookie, means the user credentials are stored in user browser(cookie), which would be auto read and auto authenticated in CQ.

Please suggest...
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 PaulMcMahon

Try looking at the Trusted Header Authentication handler which is intended for SSO integration. I believe it meets you use case -  http://dev.day.com/docs/en/cq/current/deploying/single_sign_on.html#Configuring Trusted Header Authentication and SSO. 

4 replies

PaulMcMahonAccepted solution
Level 8
October 16, 2015

Try looking at the Trusted Header Authentication handler which is intended for SSO integration. I believe it meets you use case -  http://dev.day.com/docs/en/cq/current/deploying/single_sign_on.html#Configuring Trusted Header Authentication and SSO. 

smacdonald2008
Level 10
October 16, 2015
October 16, 2015

Hi,

Thanks for the quick feedback, the requirement is a bit different:

We've uploaded the custom users to the CRX /home/user directory with all the profile data. The user node is created with an id like "123456'' with some dummy password.

An anonymous user opens the website (having this user id in a Cookie), now we want to auto authenticate this particular user so that the authorizableId (property in SessionPersistence Cookie) gets updated as "123456' rather as anonymous. So that the user falls in the proper segment and the marked teaser is rendered to him/her.

Please suggest,

Susheel

smacdonald2008
Level 10
October 16, 2015

I am not sure i am following you - you want an anonymous user to login (the Cookie is updated with this Id) -- but you want props of the cookie updated with "123456"?