Ignore:
Timestamp:
13/05/09 15:00:34 (10 years ago)
Author:
pjkersha
Message:

Further improvements to the authorization middleware:

  • PEPFilter no longer explicitly calls the PEPResultHandlerMiddleware (This latter class is the WSGI component which handles the access denied response that the server returns). This is not necessary as it can set a 403 response in order to trigger multiHandlerIntercept callback function set in the MultiHandler? instance. This responds to all 403 type status codes by invoking the PEPResultHandlerMiddleware.
  • ndg.security.common.authz.msi: improvements to the PDP, PIP and Response classes.
  • ndg.security.test.integration.dap: added integration test for secured pyDAP service
File:
1 edited

Legend:

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

    r5091 r5280  
    9191            return self._app(environ, start_response) 
    9292        else: 
    93             return self._setErrorResponse(environ,  
    94                                           start_response,  
     93            return self._setErrorResponse(start_response=start_response,  
    9594                                          msg=notFoundMsg, 
    9695                                          code=404, 
    9796                                          contentType=notFoundMsgContentType) 
    9897             
    99     def _setErrorResponse(self, environ=None, start_response=None, msg=None,  
     98    def _setErrorResponse(self, start_response=None, msg=None,  
    10099                          code=500, contentType=None): 
    101100        '''Convenience method to set a simple error response 
    102101         
    103         @type environ: dict 
    104         @param environ: standard WSGI environ parameter 
    105         @type start_response: builtin_function_or_method 
     102        @type start_response: function 
    106103        @param start_response: standard WSGI callable to set the HTTP header 
    107104        @type msg: basestring 
     
    112109        @param contentType: set 'Content-type' HTTP header field - defaults to 
    113110        'text/plain' 
    114         ''' 
    115         if environ is None: 
    116             environ = self.environ 
    117              
     111        '''             
    118112        if start_response is None: 
    119113            start_response = self.start_response 
Note: See TracChangeset for help on using the changeset viewer.