Ignore:
Timestamp:
09/01/09 13:25:52 (11 years ago)
Author:
pjkersha
Message:
  • Moved StaticURLParser app for serving OpenID Provider static content from into a Paste ini file [composit:...] - for combined services unit tests and default and full paster templates
  • Added main_app factory class method to OpenIDProviderMiddleware to fit main_app function signature required for Paste ini file to run OpenID Provider as the main app rather than as a filter.
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/serverapp.py

    r4770 r4775  
    201201     
    202202    app = loadapp('config:%s' % cfgFilePath) 
    203     rootPath = os.path.join(os.environ['NDGSEC_COMBINED_SRVS_UNITTEST_DIR'],  
    204                             'openidprovider') 
    205      
    206     # Include to enable stylesheet and graphics 
    207     staticURLParser = StaticURLParser(rootPath) 
    208     app2 = Cascade([staticURLParser, app]) 
    209     serve(app2, host='0.0.0.0', port=port) 
     203    serve(app, host='0.0.0.0', port=port) 
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/combinedservices/services.ini

    r4770 r4775  
    143143port = 5000 
    144144 
    145 [app:mainApp] 
     145[filter-app:mainApp] 
     146use = egg:Paste#httpexceptions 
     147next = cascade 
     148 
     149[composit:cascade] 
     150use = egg:Paste#cascade 
     151app1 = static 
     152app2 = SingleSignOnService 
     153catch = 404 
     154 
     155[app:static] 
     156use = egg:Paste#static 
     157document_root = %(here)s/openidprovider 
     158 
     159[app:SingleSignOnService] 
    146160paste.app_factory = ndg.security.server.sso.sso.config.middleware:make_app 
    147161cache_dir = %(here)s/data 
     
    316330# class variable for options - it may be one of X509, X509v3, X509PKIPathv1 or  
    317331# give full namespace to alternative - see  
    318 # ZSI.wstoo-+ ls.Namespaces.OASIS.X509TOKEN 
     332# ZSI.wstools.Namespaces.OASIS.X509TOKEN 
    319333# 
    320334# binSecTokValType determines whether signingCert or signingCertChain  
Note: See TracChangeset for help on using the changeset viewer.