cancel
Showing results for 
Search instead for 
Did you mean: 

Auto Login as Guest

marcusthebrown
Champ in-the-making
Champ in-the-making
Is there some way that I can automatically login to Share as a guest without bringing up the default slingshot login page?  I want to be able to go directly to a site-dashboard as a guest user by http://myip:8080/share/  or http://myip:8080/share/page/site/mysite/dashboard.  Eventually I will want to implement an enterprise SSO but for now, I'd like to make sure that I can browse through the site without having to go through a login page.

Thanks to Ed (http://edlovesjava.blogspot.com/2008/10/examining-slingshot-configuration.html), I can follow the dashboard rendering process up to the redirect in site-index.jsp.  In this file, I made userid="guest" and then specified <authentication>none</authentication> in site-index.xml and in presets.xml .  But I still get re-directed to the login page.

During the rendering of the dashboard page, I see in the source (projects/web-framework/org/alfresco/web/site/servlet/DispatcherServlet.java) that the page gets redirected to the login page if page.getAuthentication() returns "user."  But since I specified none in the authentication tags I don't know why I'm still getting redirected to the login page. 

Any help on how to accomplish this would be most appreciated.
5 REPLIES 5

aelfa
Champ in-the-making
Champ in-the-making
I am evaluating Alfresco Share for use as our home page/extranet/intranet solution. I too would like to bypass the guest authentication to provide a robust public area. Is this possible?

mikeh
Star Contributor
Star Contributor
Sorry, Share doesn't currently support the guest user.

Thanks,
Mike

rohit_imfinity
Champ in-the-making
Champ in-the-making
Hi MikeH,
Does Alfresco 4.0c supports Guest login?

bnp
Champ in-the-making
Champ in-the-making

resplin
Elite Collaborator
Elite Collaborator
We evaluated this for Alfresco 5.0, and decided against implementing it.

https://issues.alfresco.com/jira/browse/ENH-274

Many of the use cases around sharing content can be solved by creating public links:

http://docs.alfresco.com/5.0/tasks/library-item-share.html

Or make the Share site into a public site using Web Quick Start:

http://docs.alfresco.com/5.0/concepts/qs-intro.html

Or you can publish the content to an external system for public consumption. There are lots of examples using Drupal, Liferay, or just publishing to the file system:

http://docs.alfresco.com/5.0/concepts/FSTR-intro.html