Title: Message Title
|
|
My solution for logout using default pages of shibboleth SP: setting in authentication-shibboleth.cfg => logout_url = /Shibboleth.sso/Logout (I prefer this, default shibboleth pages) but is possible: logout_url = /Shibboleth.sso/Logout?return=http://example.com change for org.dspace.app.xmlui.aspect.eperson.UnAuthenticateAction.java add import javax.servlet.http.HttpSession; change code: if((ConfigurationManager.getBooleanProperty("xmlui.public.logout")) && (httpRequest.isSecure())) { StringBuilder location = new StringBuilder("http://"); location.append(ConfigurationManager.getProperty("dspace.hostname")).append( httpRequest.getContextPath()); httpResponse.sendRedirect(location.toString()); } else{ httpResponse.sendRedirect(httpRequest.getContextPath()); } by: HttpSession session = httpRequest.getSession(false); Boolean shibauthenticated = false; if(session!=null){ shibauthenticated = (Boolean)session.getAttribute("shib.authenticated"); } if (shibauthenticated==null) { shibauthenticated = false; } if(shibauthenticated){ StringBuilder location = new StringBuilder(); location.append(ConfigurationManager.getProperty("authentication-shibboleth","logout_url")); httpResponse.sendRedirect(location.toString()); } else{ if((ConfigurationManager.getBooleanProperty("xmlui.public.logout")) && (httpRequest.isSecure())) { StringBuilder location = new StringBuilder("http://"); location.append(ConfigurationManager.getProperty("dspace.hostname")).append( httpRequest.getContextPath()); httpResponse.sendRedirect(location.toString()); } else{ httpResponse.sendRedirect(httpRequest.getContextPath()); } }
|
|
|
|
|
I am running DSpace 3.1 with Shibboleth authentication. If I click "logout", DSpace will end my user session, but my Shibboleth session remains active which could be misleading to users. org.dspace.app.xmlui.aspect.eperson.UnAuthenticateAction is currently hard-coded to return to the home page after logout. It would be useful to provide a configurati...
|
|
|
|
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel