Ignore:
Timestamp:
11/03/09 12:32:15 (11 years ago)
Author:
pjkersha
Message:

Fix to logout handling for secured app middleware stack: added LogoutHandlerMiddleware? and placed in top level AuthenticationMiddleware? WSGI. This class wraps logout and OpenID sign in redirects.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg.security.server/ndg/security/server/wsgi/__init__.py

    r5084 r5091  
    2525     
    2626    def __init__(self, app, app_conf, prefix='', **local_conf): 
    27         '''Set object attributes directly from app_conf and local_conf inputs 
     27        ''' 
     28        @type app: callable following WSGI interface 
     29        @param app: next middleware application in the chain       
     30        @type app_conf: dict         
     31        @param app_conf: PasteDeploy global configuration dictionary 
    2832        @type prefix: basestring 
    2933        @param prefix: prefix for app_conf parameters e.g. 'ndgsecurity.' - 
    3034        enables other global configuration parameters to be filtered out 
     35        @type local_conf: dict         
     36        @param local_conf: PasteDeploy application specific configuration  
     37        dictionary 
    3138        ''' 
    3239        self._app = app 
     
    7178        return __call__wrapper 
    7279 
     80 
     81    def __call__(self, environ, start_response): 
     82        self._initCall(environ, start_response) 
     83        return self._setResponse(environ, start_response) 
     84     
    7385    def _setResponse(self,  
    7486                     environ,  
     
    314326     
    315327    def __init__(self, *arg, **kw): 
     328        '''See NDGSecurityMiddlewareBase for explanation of args 
     329        @type arg: tuple 
     330        @param arg: single element contains next middleware application in the  
     331        chain and app_conf dict       
     332        @type kw: dict         
     333        @param kw: prefix for app_conf parameters and local_conf dict         
     334        ''' 
    316335        super(NDGSecurityPathFilter, self).__init__(*arg, **kw) 
    317336         
Note: See TracChangeset for help on using the changeset viewer.