Ignore:
Timestamp:
06/05/09 09:05:09 (11 years ago)
Author:
pjkersha
Message:

Added additional debug logging and improved error handling

File:
1 edited

Legend:

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

    r5227 r5254  
    8080 
    8181    _isAuthenticated = lambda self: \ 
    82                             'username' in self.environ.get(self.sessionKey, ()) 
     82                            'username' in self.environ.get(self.sessionKey,()) 
    8383    isAuthenticated = property(fget=_isAuthenticated, 
    8484                               doc='boolean to indicate is user logged in') 
     
    164164                return False 
    165165        else: 
    166             log.debug("AuthorizationHandler access denied for policy") 
     166            log.debug("AuthorizationHandler policy [%s] denied access for " 
     167                      "uri [%s]", self.policyFilePath, resourceURI) 
    167168            # True invokes the access forbidden middleware 
    168169            return True 
Note: See TracChangeset for help on using the changeset viewer.