Ignore:
Timestamp:
25/09/09 17:02:25 (10 years ago)
Author:
pjkersha
Message:

Adding SSL Client authentication step into authz_lite integration test. Broken redirecting back from authn step to requested resource.

File:
1 edited

Legend:

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

    r5766 r5770  
    2121from paste.request import parse_querystring, parse_formvars 
    2222import authkit.authenticate 
     23from authkit.authenticate.open_id import AuthOpenIDHandler 
    2324from beaker.middleware import SessionMiddleware 
    2425 
     
    125126        _app = app 
    126127        while True: 
    127             if isinstance(_app,authkit.authenticate.open_id.AuthOpenIDHandler): 
     128            if isinstance(_app, AuthOpenIDHandler): 
    128129                authOpenIDHandler = _app 
    129130                self._authKitVerifyPath = authOpenIDHandler.path_verify 
     
    170171        @return: response 
    171172        ''' 
     173        # Skip Relying Party interface set-up if user has been authenticated 
     174        # by other middleware 
     175        if 'REMOTE_USER' in environ: 
     176            log.debug("Found REMOTE_USER=%s in environ, AuthKit " 
     177                      "based authentication has taken place in other " 
     178                      "middleware, skipping OpenID Relying Party interface" % 
     179                      environ['REMOTE_USER']) 
     180            return self._app(environ, start_response) 
     181         
    172182        session = environ.get(self.sessionKey) 
    173183        if session is None: 
Note: See TracChangeset for help on using the changeset viewer.