Changeset 159

Show
Ignore:
Timestamp:
11/08/08 00:25:08
Author:
thejimmyg
Message:

Applied most of ticket 59

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • AuthKit/trunk/AuthKit.egg-info/PKG-INFO

    r158 r159  
    11Metadata-Version: 1.0 
    22Name: AuthKit 
    3 Version: 0.4.2dev-r157 
     3Version: 0.4.2dev-r158 
    44Summary: An authentication and authorization toolkit for WSGI applications and frameworks 
    55Home-page: http://authkit.org/ 
  • AuthKit/trunk/CHANGELOG.txt

    r158 r159  
    440.4.2 
    55 
     6* Applied most of #59 and tested the two OpenID examples 
    67* Added support for WebOb HTTPExceptions to remove a deprecation warning in  
    78  Pylons 0.9.7 
  • AuthKit/trunk/authkit/authenticate/cookie.py

    r158 r159  
    374374            if environ.get('REMOTE_USER_TOKENS'): 
    375375                # We want to add tokens/roles to what's there: 
    376                 tokens = environ['REMOTE_USER_TOKENS'] + ',' + tokens 
     376                tokens = str(environ['REMOTE_USER_TOKENS']) + ',' + str(tokens) 
    377377            environ['REMOTE_USER_TOKENS'] = tokens 
    378378            environ['REMOTE_USER_DATA'] = user_data 
  • AuthKit/trunk/authkit/authenticate/open_id.py

    r156 r159  
    373373            if info.endpoint.canonicalID: 
    374374                username = cgi.escape(info.endpoint.canonicalID) 
    375             user_data = str(sreg.SRegResponse.fromSuccessResponse(info).getExtensionArgs()) 
     375            sreg_info = sreg.SRegResponse.fromSuccessResponse(info) 
     376            if sreg_info: 
     377                user_data = str(sreg.SRegResponse.fromSuccessResponse(info).getExtensionArgs()) 
     378            else: 
     379                user_data = "" 
    376380            # Set the cookie 
    377381            if self.urltouser: 
     
    465469            sreg_optional=options['sreg_optional'], 
    466470            sreg_policyurl=options['sreg_policyurl'], 
     471            session_middleware=options['session_middleware'] 
    467472        ) 
    468473        self.app = app 
     
    503508        'sreg_optional': auth_conf.get('sreg.optional'), 
    504509        'sreg_policyurl': auth_conf.get('sreg.policyurl'), 
    505         'session_middleware': 'beaker.session'
     510        'session_middleware': auth_conf.get('session.middleware','beaker.session')
    506511    } 
    507512    auth_handler_params={ 
     
    511516        'charset':user_setter_params['charset'], 
    512517    } 
     518    # The following lines were suggested in #59 but I don't know 
     519    # why they are needed because you shouldn't be using the  
     520    # user management API. 
     521    # authenticate_conf = strip_base(auth_conf, 'authenticate.') 
     522    # app, authfunc, users = get_authenticate_function( 
     523    #     app,  
     524    #     authenticate_conf,  
     525    #     prefix=prefix+'authenticate.',  
     526    #     format='basic' 
     527    # ) 
    513528    return app, auth_handler_params, user_setter_params 
    514529