Ignore:
Timestamp:
21/11/08 12:47:38 (12 years ago)
Author:
pjkersha
Message:

Combined Services tests:

  • added capability for Session Manager to call a local Attribute Authority in the WSGI stack of the same Paste instance
  • SOAP client can specify that the Session Manager call a local Attribute Authority by setting AttAuthorityURI to nill in the web service call.
File:
1 edited

Legend:

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

    r4404 r4480  
    7979     
    8080    def _initCall(self, environ, start_response): 
     81        '''Sub-divided out from __call__ to enable derived classes to easily 
     82        include this functionality: 
     83         - Set a reference to this WSGI filter in environ if filterID was  
     84        set in the config and  
     85         - check the request to see if this filter should handle it 
     86        ''' 
     87         
     88        # Add any filter references for this WSGI component regardless of the 
     89        # current request ID.  This ensures that other WSGI components called 
     90        # may reference it if they need to. 
     91        self.addFilter2Environ(environ) 
     92         
    8193        # Apply filter for calls 
    8294        if not self.isSOAPMessage(environ): 
     
    104116            self.setSOAPWriter(environ, sw) 
    105117            return self.writeResponse(environ, start_response) 
    106          
    107         self.addFilter2Environ(environ) 
    108118         
    109119        # Return None to __call__ to indicate that it can proceed with  
     
    290300            # e.g. check output from signature verification filter 
    291301            if hasattr(self, 'referencedFilterKeys'): 
    292                 self.serviceSOAPBinding.referencedWSGIFilters = \ 
    293                                     dict([(i, environ[i]) \ 
     302                try: 
     303                    self.serviceSOAPBinding.referencedWSGIFilters = \ 
     304                                    dict([(i, environ[i])  
    294305                                          for i in self.referencedFilterKeys]) 
    295                      
     306                except KeyError: 
     307                    raise SOAPMiddlewareConfigError('No filter ID "%s" found ' 
     308                                                    'in environ' % i)     
    296309            ps = self.parseRequest(environ) 
    297310             
Note: See TracChangeset for help on using the changeset viewer.