Ignore:
Timestamp:
08/04/09 15:55:47 (11 years ago)
Author:
pjkersha
Message:

Tested Policy with regex target URIs

File:
1 edited

Legend:

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

    r5186 r5187  
    9292        # Policy Decision Point 
    9393        policyCfg = AuthorizationHandler._filterKeywords(app_conf, 'policy.') 
     94        self.policyFilePath = policyCfg['filePath'] 
    9495        self.policy = Policy.Parse(policyCfg['filePath']) 
    9596        self.pdp = PDP(self.policy, pip) 
     
    123124                # No match - it's publicly accessible 
    124125                return False 
     126 
     127        log.debug("AuthorizationHandler found matching target(s):\n\n " 
     128                  "%s\nfrom policy file [%s] for URI=[%s]" %  
     129                  ('\n'.join(["RegEx=%s" % t for t in matchingTargets]),  
     130                   self.policyFilePath, 
     131                   resourceURI)) 
    125132         
    126133        if not self.isAuthenticated: 
     
    145152                # Skip the access forbidden middleware and call the next next 
    146153                # WSGI app 
    147                 log.debug("AuthorizationHandler access granted for policy") 
     154                log.debug("AuthorizationHandler access granted to [%s] using " 
     155                          "policy [%s]" % (resourceURI, self.policyFilePath)) 
    148156                return False 
    149157        else: 
Note: See TracChangeset for help on using the changeset viewer.