<?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: permanent links and CAS authentication in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/permanent-links-and-cas-authentication/m-p/321551#M8552</link>
    <description>&lt;P&gt;Hi I found a solution for my authenticator, I assume the same thing is happening in the CAS one.  Sometimes the tomcat session has not been initialized during authentication (according to this post: &lt;A href="http://stackoverflow.com/questions/595872/under-what-conditions-is-a-jsessionid-created)" target="test_blank"&gt;http://stackoverflow.com/questions/595872/under-what-conditions-is-a-jsessionid-created)&lt;/A&gt; so I needed to add a: httpRequest.getSession(true); during the handleRetrieveIdentity method. This seems to fix my issue of Nuxeo going to a page not found after navigating following any direct link.&lt;/P&gt;
&lt;P&gt;I think the CAS authenticator is hosted here: &lt;A href="https://github.com/nuxeo/nuxeo-platform-login/blob/master/nuxeo-platform-login-cas2/src/main/java/org/nuxeo/ecm/platform/ui/web/auth/cas2/Cas2Authenticator.java" target="test_blank"&gt;https://github.com/nuxeo/nuxeo-platform-login/blob/master/nuxeo-platform-login-cas2/src/main/java/org/nuxeo/ecm/platform/ui/web/auth/cas2/Cas2Authenticator.java&lt;/A&gt; in which you could attempt just adding httpRequest.getSession(true); into the handleRetrieveIdentity function to make sure that the session has been started.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Dec 2013 21:57:55 GMT</pubDate>
    <dc:creator>cburch_</dc:creator>
    <dc:date>2013-12-05T21:57:55Z</dc:date>
    <item>
      <title>permanent links and CAS authentication</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/permanent-links-and-cas-authentication/m-p/321548#M8549</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;We still have problem with CAS Authentication and permanent links even without using ANONYMOUS_AUTH_FOR_CAS2 plugin (see &lt;A href="http://answers.nuxeo.com/questions/5445/permanent-links-dont-work-with-cas-authentication"&gt;http://answers.nuxeo.com/questions/5445/permanent-links-dont-work-with-cas-authentication&lt;/A&gt;), but another kind.&lt;/P&gt;
&lt;P&gt;If document can be reached with its permanent link, other links in the page (other workspaces or "deconnection button") are broken: we got a "&lt;EM&gt;page not found&lt;/EM&gt;" when we used them.&lt;/P&gt;
&lt;P&gt;This happen when there is no previous cookies in the browser (no connection to nuxeo plateform before use of the direct link).&lt;/P&gt;
&lt;P&gt;In this case, URLs of the links contain the substring "jsessionid=....."&lt;/P&gt;
&lt;P&gt;Ex.: &lt;CODE&gt;&lt;A href="http://localhost/nuxeo/nxpath/default/default-domain/workspaces/niv2@view_documents;jsessionid=4E26E6BDDFB2E0220550C9728EB97927.nuxeo?tabIds=%3A&amp;amp;amp;conversationId=0NXMAIN1" target="test_blank"&gt;http://localhost/nuxeo/nxpath/default/default-domain/workspaces/niv2@view_documents;jsessionid=4E26E6BDDFB2E0220550C9728EB97927.nuxeo?tabIds=%3A&amp;amp;amp;conversationId=0NXMAIN1&lt;/A&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;After a back with the link given in the error page, the URL become :&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&lt;A href="http://localhost/nuxeo/nxpath/default/default-domain/workspaces/niv2@view_documents?tabIds=%3A&amp;amp;amp;conversationId=0NXMAIN2" target="test_blank"&gt;http://localhost/nuxeo/nxpath/default/default-domain/workspaces/niv2@view_documents?tabIds=%3A&amp;amp;amp;conversationId=0NXMAIN2&lt;/A&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;and works.&lt;/P&gt;
&lt;P&gt;Has someone experienced the same behaviour?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2013 16:36:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/permanent-links-and-cas-authentication/m-p/321548#M8549</guid>
      <dc:creator>manuek_</dc:creator>
      <dc:date>2013-06-03T16:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: permanent links and CAS authentication</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/permanent-links-and-cas-authentication/m-p/321549#M8550</link>
      <description>&lt;P&gt;We have the same issue w/ our custom auth plugin, not sure how to fix yet. Perhaps there is some way to create the nuxeo session during authentication?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2013 13:37:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/permanent-links-and-cas-authentication/m-p/321549#M8550</guid>
      <dc:creator>cburch_</dc:creator>
      <dc:date>2013-11-04T13:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: permanent links and CAS authentication</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/permanent-links-and-cas-authentication/m-p/321550#M8551</link>
      <description>&lt;P&gt;I don't know how to solve this problem.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2013 14:07:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/permanent-links-and-cas-authentication/m-p/321550#M8551</guid>
      <dc:creator>manuek_</dc:creator>
      <dc:date>2013-11-04T14:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: permanent links and CAS authentication</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/permanent-links-and-cas-authentication/m-p/321551#M8552</link>
      <description>&lt;P&gt;Hi I found a solution for my authenticator, I assume the same thing is happening in the CAS one.  Sometimes the tomcat session has not been initialized during authentication (according to this post: &lt;A href="http://stackoverflow.com/questions/595872/under-what-conditions-is-a-jsessionid-created)" target="test_blank"&gt;http://stackoverflow.com/questions/595872/under-what-conditions-is-a-jsessionid-created)&lt;/A&gt; so I needed to add a: httpRequest.getSession(true); during the handleRetrieveIdentity method. This seems to fix my issue of Nuxeo going to a page not found after navigating following any direct link.&lt;/P&gt;
&lt;P&gt;I think the CAS authenticator is hosted here: &lt;A href="https://github.com/nuxeo/nuxeo-platform-login/blob/master/nuxeo-platform-login-cas2/src/main/java/org/nuxeo/ecm/platform/ui/web/auth/cas2/Cas2Authenticator.java" target="test_blank"&gt;https://github.com/nuxeo/nuxeo-platform-login/blob/master/nuxeo-platform-login-cas2/src/main/java/org/nuxeo/ecm/platform/ui/web/auth/cas2/Cas2Authenticator.java&lt;/A&gt; in which you could attempt just adding httpRequest.getSession(true); into the handleRetrieveIdentity function to make sure that the session has been started.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2013 21:57:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/permanent-links-and-cas-authentication/m-p/321551#M8552</guid>
      <dc:creator>cburch_</dc:creator>
      <dc:date>2013-12-05T21:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: permanent links and CAS authentication</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/permanent-links-and-cas-authentication/m-p/321552#M8553</link>
      <description>&lt;P&gt;Thanks for this response but can you explain how you make "so I needed to add a&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2014 09:16:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/permanent-links-and-cas-authentication/m-p/321552#M8553</guid>
      <dc:creator>vjoussot_</dc:creator>
      <dc:date>2014-10-10T09:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: permanent links and CAS authentication</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/permanent-links-and-cas-authentication/m-p/321553#M8554</link>
      <description>&lt;P&gt;I'm not sure what would need done for the CAS plugin (probably changing the internal code to make a slightly modified one) but for our project we ended up writing our own login authenticator that we plugged into nuxeo and used that instead of CAS.  If you go that route I had written a blog post describing what we had to do here: &lt;A href="http://blogs.nuxeo.com/development/2014/01/guest-post-integrating-single-sign-sso-nuxeo-case-management/" target="test_blank"&gt;http://blogs.nuxeo.com/development/2014/01/guest-post-integrating-single-sign-sso-nuxeo-case-management/&lt;/A&gt;  Hopefully that can help you out.&lt;/P&gt;
&lt;P&gt;Short answer is we created our own Authenticator class
public class InfiniteAuthenticator implements NuxeoAuthenticationPlugin, NuxeoAuthenticationPluginLogoutExtension and in the override method "handlerRetrieveIdentity" we have some logic to authenticate w/ our internal system and if successful, then call: httpRequest.getSession(true);&lt;/P&gt;
&lt;P&gt;Nuxeo's info regarding authenticators can be found here which is helpful also: &lt;A href="http://doc.nuxeo.com/display/NXDOC/Authentication" target="test_blank"&gt;http://doc.nuxeo.com/display/NXDOC/Authentication&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2014 14:01:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/permanent-links-and-cas-authentication/m-p/321553#M8554</guid>
      <dc:creator>cburch_</dc:creator>
      <dc:date>2014-10-10T14:01:57Z</dc:date>
    </item>
  </channel>
</rss>

