06-03-2013 12:36 PM
Hi,
We still have problem with CAS Authentication and permanent links even without using ANONYMOUS_AUTH_FOR_CAS2 plugin (see http://answers.nuxeo.com/questions/5445/permanent-links-dont-work-with-cas-authentication), but another kind.
If document can be reached with its permanent link, other links in the page (other workspaces or "deconnection button") are broken: we got a "page not found" when we used them.
This happen when there is no previous cookies in the browser (no connection to nuxeo plateform before use of the direct link).
In this case, URLs of the links contain the substring "jsessionid=....."
After a back with the link given in the error page, the URL become :
and works.
Has someone experienced the same behaviour?
Thanks
11-04-2013 08:37 AM
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?
11-04-2013 09:07 AM
I don't know how to solve this problem.
12-05-2013 04:57 PM
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: http://stackoverflow.com/questions/595872/under-what-conditions-is-a-jsessionid-created) 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.
I think the CAS authenticator is hosted here: https://github.com/nuxeo/nuxeo-platform-login/blob/master/nuxeo-platform-login-cas2/src/main/java/or... in which you could attempt just adding httpRequest.getSession(true); into the handleRetrieveIdentity function to make sure that the session has been started.
10-10-2014 05:16 AM
Thanks for this response but can you explain how you make "so I needed to add a
10-10-2014 10:01 AM
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: http://blogs.nuxeo.com/development/2014/01/guest-post-integrating-single-sign-sso-nuxeo-case-managem... Hopefully that can help you out.
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);
Nuxeo's info regarding authenticators can be found here which is helpful also: http://doc.nuxeo.com/display/NXDOC/Authentication
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.