Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

How to do a default log in, when any person hits a particular template's page on my website

prajwal008
Level 2
Level 2

How can I do a default logged in without asking for the person who is visiting a particular page on my website?

I want the log in should be done automatically when a user hits the particular page. That logged in user will a guest user and same for all the visitors on my website.

Can I achieve this?

Thanks,

Prajwal

1 Accepted Solution
Jörg_Hoh
Correct answer by
Employee
Employee

Hi

Prajwal Akolnerkar wrote...

Hi Jorg,

You can refer my below post link -

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/aem-communities.topic.h...

I want to use the OOB Comment component and for posting a comment log in is required. Anonymous user can view the previous comment but can't post. Is there any alternative way, or we have to do the log in integration with Google or FB.


The ootb component assumes write access to the repository, therefor the requirement to have a JCR user with write permissions to the specific location in the repo. I do not recommend it at all, but you can change the permissions of the anonymous user to have write access. But this (and any other kind) of anonymous posting comments gives you a huge threat vector if this site is open to the internet. Please consider this in your design.

You should also think about how you distribute this usergenerated content over multiple instances. If you haven't please think about using Social Communities, which can address this problem quite nicely.

View solution in original post

0 Replies
Jörg_Hoh
Employee
Employee

Hi,

what do you mean with "default log in"? A not-logged-in user will be using the anonymous user, which is the same for all non-logged-in users. What do you want to achieve?

kind regards,
Jörg

kautuk_sahni
Community Manager
Community Manager

Hi

I am not sure, what we need to achieve with default Login. But, If you want to have something like guest session, 

Then please have a look at few community links:-

Link:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

Link:- http://stackoverflow.com/questions/34916446/creating-guest-session

I hope this would help you.

 

Thanks and Regards

Kautuk Sahni

prajwal008
Level 2
Level 2

Hi Jorg,

You can refer my below post link -

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/aem-communities.topic.h...

I want to use the OOB Comment component and for posting a comment log in is required. Anonymous user can view the previous comment but can't post. Is there any alternative way, or we have to do the log in integration with Google or FB.

Thanks,

Prajwal A

Manikumar
Level 4
Level 4

Prajwal Akolnerkar wrote...

Hi Jorg,

You can refer my below post link -

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/aem-communities.topic.h...

I want to use the OOB Comment component and for posting a comment log in is required. Anonymous user can view the previous comment but can't post. Is there any alternative way, or we have to do the log in integration with Google or FB.

Thanks,

Prajwal A

 

 

Hi 

Do you really want to comment using guest user then create a user in useradmin and then on page load have ajax call to login with that guest user and make sure that the user have enough permissions to comment

Thanks,

Mani Kumar K

Jörg_Hoh
Correct answer by
Employee
Employee

Hi

Prajwal Akolnerkar wrote...

Hi Jorg,

You can refer my below post link -

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/aem-communities.topic.h...

I want to use the OOB Comment component and for posting a comment log in is required. Anonymous user can view the previous comment but can't post. Is there any alternative way, or we have to do the log in integration with Google or FB.


The ootb component assumes write access to the repository, therefor the requirement to have a JCR user with write permissions to the specific location in the repo. I do not recommend it at all, but you can change the permissions of the anonymous user to have write access. But this (and any other kind) of anonymous posting comments gives you a huge threat vector if this site is open to the internet. Please consider this in your design.

You should also think about how you distribute this usergenerated content over multiple instances. If you haven't please think about using Social Communities, which can address this problem quite nicely.

View solution in original post