Ignore:
Timestamp:
11/01/10 15:37:50 (10 years ago)
Author:
pjkersha
Message:

Preparing 1.4 release.

File:
1 edited

Legend:

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

    r6271 r6284  
    1212__revision__ = "$Id: $" 
    1313__license__ = "BSD - see LICENSE file in top-level directory" 
    14 from ndg.security.server.wsgi.session import SessionMiddlewareBase 
     14from ndg.security.server.wsgi.session import (SessionMiddlewareBase,  
     15    SessionHandlerMiddlewareError, SessionHandlerMiddlewareConfigError) 
    1516 
    16  
     17class PEPResultHandlerMiddlewareError(SessionHandlerMiddlewareError): 
     18    """Base exception for PEP Result Handler Middleware implementations""" 
     19             
     20             
     21class PEPResultHandlerMiddlewareConfigError(SessionHandlerMiddlewareConfigError): 
     22    """Configuration errors from PEP Result Handler Middleware implementations 
     23    """ 
     24     
     25     
    1726class PEPResultHandlerMiddlewareBase(SessionMiddlewareBase): 
    1827    """Abstract Base class for Policy Enforcement Point result handler  
    19     specialisations""" 
     28    specialisations 
     29     
     30    This class can be overridden to define custom behaviour for the access 
     31    denied response e.g. include an interface to enable users to register for 
     32    the dataset from which they have been denied access.  See  
     33    AuthorizationMiddlewareBase pepResultHandler keyword. 
     34     
     35    Implementations of this class will be invoked if access is denied to a given 
     36    resource.  An instance is incorporated into the call stack by passing it in  
     37    to a MultiHandler instance.   
     38     
     39    The MultiHandler is configured in the AuthorizationMiddlewareBase  
     40    class - see ndg.security.server.wsgi.authz.  The MultiHandler is passed a  
     41    checker method which determines whether to allow access, or call this  
     42    interface.   The checker is implemented in the PEPFilter.  See  
     43    ndg.security.server.wsgi.authz 
     44     
     45    This class includes user session key and isAuthenticated property inherited  
     46    from SessionMiddlewareBase 
     47    """ 
    2048     
    2149    @SessionMiddlewareBase.initCall 
Note: See TracChangeset for help on using the changeset viewer.