10-23-2013 01:42 PM
I've created my own login plugin to authenticate users with our system and included a logout extension to logout users in our system upon logging out of nuxeo. This all works fine except when a user follows a direct link to nuxeo e.g. http://mynuxeoinstance/nuxeo/nxpath/default/default-domain/Doc1234@view_documents
If you push logout from that page it navigates to http://mynuxeoinstance/nuxeo/logout instead of calling my logout function.
If you navigate anywhere else from that page in nuxeo, it calls my correct logout function when attempting to logout. Is it related to the ?tabIds=%3A&conversationId=0NXMAIN1 it appends to the url when navigating around? Something about going directly to a page and logging out from there seems to cause it to fail. Any ideas?
Edit: this displays the same issues as this post: http://answers.nuxeo.com/questions/5797/permanent-links-and-cas-authentication
10-25-2013 10:11 AM
Would you have some code snippet to share? Ideally a (WebDriver) test reproducing the issue?
How does your logout extension work?
10-30-2013 09:57 AM
Updated my question with some more information about the authenticator and loginplugin. I'm not sure how to create WebDriver tests, I'll try to look into that here. Let me know if you could use more information.
10-30-2013 09:55 AM
Edit
11-04-2013 05:45 AM
Hi,
11-04-2013 08:34 AM
I think you are right manuek, we have those issues also and they are probably related to using an alternate login method w/ direct links.
12-05-2013 04:54 PM
I think I've found the solution to this:
When using a custom Authenticator, sometimes the tomcat session has not been initialized yet (according to this post: http://stackoverflow.com/questions/595872/under-what-conditions-is-a-jsessionid-created). To ensure my session has started I added a httpRequest.getSession(true); during the handleRetrieveIdentity method. This seems to fix my issue of Nuxeo going to a page not found after any redirect.
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.