Ignore:
Timestamp:
05/12/08 16:07:27 (12 years ago)
Author:
pjkersha
Message:

OpenID Provider Authentication interface:

  • added AuthN extension to enable Session Manager based authentication for OpenID Provider.

OpenID Provider, Session Manager and Attribute Authority WSGI filters now integrated running in a single PAste instance.

Location:
TI12-security/trunk/python/ndg.security.test/ndg/security/test/combinedservices
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/combinedservices/services.ini

    r4537 r4545  
    307307# OpenID Provider WSGI Settings 
    308308[filter:OpenIDProviderFilter] 
    309 paste.filter_app_factory=ndg.security.server.wsgi.openid_provider:OpenIDProviderMiddleware 
     309paste.filter_app_factory=ndg.security.server.wsgi.openid.provider:OpenIDProviderMiddleware 
    310310openid.provider.path.openidserver=/openid/endpoint 
    311311openid.provider.path.login=/openid/login 
     
    327327openid.provider.trace=False 
    328328#openid.provider.renderingClass=ndg.security.server.pylons.container.lib.openid_provider_util.OpenIDProviderKidRendering 
    329 openid.provider.renderingClass=ndg.security.server.wsgi.openid_provider.DemoRenderingInterface 
     329openid.provider.renderingClass=ndg.security.server.wsgi.openid.provider.DemoRenderingInterface 
    330330openid.provider.sregResponseHandler=ndg.security.server.pylons.container.lib.openid_provider_util:esgSRegResponseHandler 
    331331openid.provider.axResponseHandler=ndg.security.server.pylons.container.lib.openid_provider_util:esgAXResponseHandler 
    332 openid.provider.authNInterface=ndg.security.server.wsgi.openid_provider.BasicAuthNInterface 
    333 openid.provider.authN.userCreds=pjk:test 
    334 openid.provider.authN.username2UserIdentifiers=pjk:PhilipKershaw,P.J.Kershaw 
     332 
     333# Basic Authentication interface to demonstrate capabilities 
     334#openid.provider.authNInterface=ndg.security.server.wsgi.openid.provider.BasicAuthNInterface 
     335#openid.provider.authN.userCreds=pjk:test 
     336#openid.provider.authN.username2UserIdentifiers=pjk:PhilipKershaw,P.J.Kershaw 
     337 
     338# Link Authentication to a Session Manager instance running in the same WSGI 
     339# stack or on a remote service 
     340openid.provider.authNInterface=ndg.security.server.wsgi.openid.provider.authninterface.sessionmanager.SessionManagerOpenIDAuthNInterface 
     341 
     342# Omit or leave as blank if the Session Manager is accessible locally in the 
     343# same WSGI stack. 
     344openid.provider.authN.sessionManagerURI= 
     345 
     346# environ dictionary key to Session Manager WSGI instance held locally.  The 
     347# setting below is the default and can be omitted if it matches the filterID 
     348# set for the Session Manager 
     349#openid.provider.authN.environKey=ndg.security.server.wsgi.sessionManagerFilter 
     350 
     351# Database connection to enable check between username and OpenID identifier 
     352openid.provider.authN.connectionString: postgres://postgres:testpassword@localhost/testUserDb 
     353openid.provider.authN.logonSQLQuery: select username from openid where username = '$username' and ident = '$userIdentifier' 
     354openid.provider.authN.userIdentifiersSQLQuery: select distinct ident from openid where username = '$username' 
    335355 
    336356# Basic authentication for testing/admin - comma delimited list of  
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/combinedservices/test_combinedservices.py

    r4521 r4545  
    1515__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    1616__revision__ = '$Id: test_sessionmanagerclient.py 4437 2008-11-18 12:34:25Z pjkersha $' 
     17import logging 
     18logging.basicConfig(level=logging.DEBUG) 
    1719 
    1820import unittest 
Note: See TracChangeset for help on using the changeset viewer.