Example #1
0
 def _process(self):
     autoLogoutRedirect = None
     if self._getUser():
         auth = AuthenticatorMgr()
         autoLogoutRedirect = auth.autoLogout(self)
         self._getSession().removeVar("ActiveTimezone")
         self._getSession().setUser(None)
         self._setUser(None)
     if autoLogoutRedirect:
         self._redirect(autoLogoutRedirect)
     else:
         self._redirect(self._returnURL)
Example #2
0
 def _process( self ):
     autoLogoutRedirect = None
     if self._getUser():
         auth = AuthenticatorMgr()
         autoLogoutRedirect = auth.autoLogout(self)
         self._getSession().removeVar("ActiveTimezone")
         self._getSession().setUser( None )
         self._setUser( None )
     if autoLogoutRedirect:
         self._redirect(autoLogoutRedirect)
     else:
         self._redirect(self._returnURL)
Example #3
0
 def _process(self):
     """Script triggered by the display of the centralized SSO logout
     dialog. It logouts the user from CDS Invenio and stream back the
     expected picture."""
     if self._getUser():
         auth = AuthenticatorMgr()
         autoLogoutRedirect = auth.autoLogout(self)
         self._getSession().removeVar("ActiveTimezone")
         self._getSession().setUser( None )
         self._setUser( None )
     self._req.content_type = 'image/gif'
     self._req.encoding = None
     self._req.filename = 'wsignout.gif'
     self._req.headers_out["Content-Disposition"] = "inline; filename=wsignout.gif"
     self._req.set_content_length(os.path.getsize("%s/wsignout.gif"%Configuration.Config.getInstance().getImagesDir()))
     self._req.send_http_header()
     self._req.sendfile("%s/wsignout.gif"%Configuration.Config.getInstance().getImagesDir())
Example #4
0
 def _process(self):
     """Script triggered by the display of the centralized SSO logout
     dialog. It logouts the user from CDS Invenio and stream back the
     expected picture."""
     if self._getUser():
         auth = AuthenticatorMgr()
         autoLogoutRedirect = auth.autoLogout(self)
         self._getSession().removeVar("ActiveTimezone")
         self._getSession().setUser( None )
         self._setUser( None )
     self._req.content_type = 'image/gif'
     self._req.encoding = None
     self._req.filename = 'wsignout.gif'
     self._req.headers_out["Content-Disposition"] = "inline; filename=wsignout.gif"
     self._req.set_content_length(os.path.getsize("%s/wsignout.gif"%Configuration.Config.getInstance().getImagesDir()))
     self._req.send_http_header()
     self._req.sendfile("%s/wsignout.gif"%Configuration.Config.getInstance().getImagesDir())