cancel
Showing results for 
Search instead for 
Did you mean: 

Logout Plugin not being called after direct link navigation

cburch_
Champ in-the-making
Champ in-the-making

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

6 REPLIES 6

Julien_Carsique
Elite Collaborator
Elite Collaborator

Would you have some code snippet to share? Ideally a (WebDriver) test reproducing the issue?

How does your logout extension work?

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.

cburch_
Champ in-the-making
Champ in-the-making

Edit

manuek_
Star Contributor
Star Contributor

Hi,

cburch_
Champ in-the-making
Champ in-the-making

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.

cburch_
Champ in-the-making
Champ in-the-making

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.

Getting started

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.