Ignore:
Timestamp:
15/05/09 11:30:49 (10 years ago)
Author:
pjkersha
Message:

Fix to ndg.security.server.wsgi.authn.AuthenticationRedirectMiddleware?: when user is authenticated return next app in stack rather raising 403 response. 403 is not needed here in order to activate the authorisation middleware. The latter can trigger itself.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/unit/wsgi/authn/test_authn.py

    r5291 r5292  
    8282    def test02Skip200WithLoggedIn(self): 
    8383        response = self.app.get('/test_200WithLoggedIn', 
    84                                 extra_environ={'REMOTE_USER': 'testuser'}, 
    85                                 status=403) 
     84                                extra_environ={'REMOTE_USER': 'testuser'}) 
    8685 
    8786    def test03Catch401WithLoggedIn(self): 
    8887        response = self.app.get('/test_401WithLoggedIn',  
    8988                                extra_environ={'REMOTE_USER': 'testuser'}, 
    90                                 status=403) 
     89                                status=401) 
    9190         
    9291    def test04Catch200WithNotLoggedIn(self): 
Note: See TracChangeset for help on using the changeset viewer.