<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Force Anonymous Login in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/force-anonymous-login/m-p/327380#M14381</link>
    <description>&lt;P&gt;I have decided yo use this approach for now, maybe we will filter actions as well. I really need to open access to all documents, blobs and metadata and I am already overriding StartupHelper to change the default landing page to the DAM tab, so this was a one line solution for me. The only issue I found is that documentManager was null, so instead I used&lt;/P&gt;</description>
    <pubDate>Thu, 18 Apr 2013 09:09:39 GMT</pubDate>
    <dc:creator>jiyarza_Yarza</dc:creator>
    <dc:date>2013-04-18T09:09:39Z</dc:date>
    <item>
      <title>Force Anonymous Login</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/force-anonymous-login/m-p/327372#M14373</link>
      <description>&lt;P&gt;So, How do you force the login page for anonymous users?&lt;/P&gt;
&lt;P&gt;Any ideas?&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;Jose.&lt;/P&gt;
&lt;P&gt;Long story:
We have configured anonymous access so that we can directly link and download nuxeo documents (blob files) from an external site.&lt;/P&gt;
&lt;P&gt;However we don't want to allow anonymous users to access the nuxeo web application, so I would like to force the login page for anonymous users. How can we achieve this?&lt;/P&gt;
&lt;P&gt;I have played with the forceAnonymousLogin parameter, but with little success.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2013 13:50:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/force-anonymous-login/m-p/327372#M14373</guid>
      <dc:creator>jiyarza_Yarza</dc:creator>
      <dc:date>2013-04-05T13:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Force Anonymous Login</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/force-anonymous-login/m-p/327373#M14374</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;If you force the login page for anonymous users, then there is no more anonymous access &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt; /&amp;gt;
You must define the URLs/paths which will be anonymously accessible (read rights to the Guest user). Then, any other URL/path including the login page will require a login.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2013 12:08:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/force-anonymous-login/m-p/327373#M14374</guid>
      <dc:creator>Julien_Carsique</dc:creator>
      <dc:date>2013-04-15T12:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Force Anonymous Login</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/force-anonymous-login/m-p/327374#M14375</link>
      <description>&lt;P&gt;Hi Julien, I want to force the login page only when someone enters the nuxeo home page, but at the same time allow direct links for downloading blobs. The reason is that I am linking directly the videos in Nuxeo DAM from external video players, and I need them to be available anonymously. But I would like to avoid anonymous users to browse the repository. Would that be possible? Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2013 13:22:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/force-anonymous-login/m-p/327374#M14375</guid>
      <dc:creator>jiyarza_Yarza</dc:creator>
      <dc:date>2013-04-15T13:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Force Anonymous Login</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/force-anonymous-login/m-p/327375#M14376</link>
      <description>&lt;P&gt;So, instead of defining an anonymous access which is based on documents and not actions on those documents, you could simply open some URLs (those matching the direct links) with [PluggableAuthenticationService--openUrl][1]; something like&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2013 18:41:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/force-anonymous-login/m-p/327375#M14376</guid>
      <dc:creator>Julien_Carsique</dc:creator>
      <dc:date>2013-04-15T18:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Force Anonymous Login</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/force-anonymous-login/m-p/327376#M14377</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;How about overriding the StartupHelper ? This is done in the Social Collaboration Module and in CMF.. something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;/**
 * Overwrite default StartupHelper to provide custom startup page.
 */
@Name("startupHelper")
@Scope(SESSION)
@Install(precedence = Install.DEPLOYMENT)
public class MyStartupHelper extends StartupHelper {

    private static final long serialVersionUID = 1L;

    @Override
    @Begin(id = "#{conversationIdGenerator.nextMainConversationId}", join = true)
    public String initDomainAndFindStartupPage(String domainTitle, String viewId) {
        String result = super.initDomainAndFindStartupPage(domainTitle, viewId);

        NuxeoPrincipal principal = (NuxeoPrincipal) documentManager.getPrincipal();

        if (principal.isAdministrator()) {
            return result;
        } else if (principal.isAnonymous()) {
            try {
                FacesContext.getCurrentInstance().getExternalContext().redirect(NXAuthConstants.LOGOUT_PAGE);
            } catch (IOException e) { }
            return null;
        } else {
            return dashboardNavigationHelper.navigateToDashboard();
        }
    }
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Apr 2013 19:49:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/force-anonymous-login/m-p/327376#M14377</guid>
      <dc:creator>Nelson_Silva</dc:creator>
      <dc:date>2013-04-15T19:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Force Anonymous Login</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/force-anonymous-login/m-p/327377#M14378</link>
      <description>&lt;P&gt;That would avoid anonymous users to browse the repository using the JSF UI but documents would still be accessible and browsable through any other UI...&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2013 12:53:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/force-anonymous-login/m-p/327377#M14378</guid>
      <dc:creator>Julien_Carsique</dc:creator>
      <dc:date>2013-04-16T12:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Force Anonymous Login</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/force-anonymous-login/m-p/327378#M14379</link>
      <description>&lt;P&gt;Yes. You still have to filter unwanted actions with not_anonymous ("home", etc) and set the proper permissions in the repository but I guess it solves the "don't want to allow anonymous users to access the nuxeo web application" bit...&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2013 13:20:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/force-anonymous-login/m-p/327378#M14379</guid>
      <dc:creator>Nelson_Silva</dc:creator>
      <dc:date>2013-04-16T13:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Force Anonymous Login</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/force-anonymous-login/m-p/327379#M14380</link>
      <description>&lt;P&gt;The openUrl extension point is a neat solution, since you can fine grain the urls according to your needs. Thank you very much for the tip.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2013 09:02:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/force-anonymous-login/m-p/327379#M14380</guid>
      <dc:creator>jiyarza_Yarza</dc:creator>
      <dc:date>2013-04-18T09:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Force Anonymous Login</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/force-anonymous-login/m-p/327380#M14381</link>
      <description>&lt;P&gt;I have decided yo use this approach for now, maybe we will filter actions as well. I really need to open access to all documents, blobs and metadata and I am already overriding StartupHelper to change the default landing page to the DAM tab, so this was a one line solution for me. The only issue I found is that documentManager was null, so instead I used&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2013 09:09:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/force-anonymous-login/m-p/327380#M14381</guid>
      <dc:creator>jiyarza_Yarza</dc:creator>
      <dc:date>2013-04-18T09:09:39Z</dc:date>
    </item>
  </channel>
</rss>

