Changeset 4105 for TI12-security/trunk


Ignore:
Timestamp:
05/08/08 16:26:48 (11 years ago)
Author:
pjkersha
Message:

Begun work abstracting out rendering to enable custom Kid templating.

Location:
TI12-security/trunk/python/Tests/openid-provider/op
Files:
449 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/Tests/openid-provider/op/development.ini

    r4082 r4105  
    2424 
    2525authkit.setup.method = form, cookie 
     26authkit.form.template.string = <html><body>%s</body></html> 
     27#  <head><title>NDG Sign In</title></head> 
     28#  <body> 
     29#    <h1>Please Sign In</h1> 
     30#    <form action="%s" method="post"> 
     31#      <dl> 
     32#        <dt>Username:</dt> 
     33#        <dd><input type="text" name="username"></dd> 
     34#        <dt>Password:</dt> 
     35#        <dd><input type="password" name="password"></dd> 
     36#      </dl> 
     37#      <input type="submit" name="authform" value="Sign In" /> 
     38#    </form> 
     39#  </body>  
     40#</html> 
     41 
    2642authkit.form.authenticate.user.data = visitor:open_sesame 
    2743authkit.cookie.secret = secret string 
    28 authkit.cookie.signin = /auth/signin 
    2944 
    3045# If you'd like to fine-tune the individual locations of the cache data dirs 
     
    4257# Logging configuration 
    4358[loggers] 
    44 keys = root, op 
     59keys = root, op, ndg 
    4560 
    4661[handlers] 
     
    5974qualname = op 
    6075 
     76[logger_ndg] 
     77level = DEBUG 
     78handlers = console 
     79qualname = ndg 
     80 
    6181[handler_console] 
    6282class = StreamHandler 
  • TI12-security/trunk/python/Tests/openid-provider/op/op/config/environment.py

    r4081 r4105  
    2121    # Initialize config with the basic options 
    2222    config.init_app(global_conf, app_conf, package='op', 
    23                     template_engine='mako', paths=paths) 
     23                    template_engine='kid', paths=paths) 
    2424 
    2525    config['routes.map'] = make_map() 
     
    3232    # CONFIGURATION OPTIONS HERE (note: all config options will override 
    3333    # any Pylons config options) 
     34     
  • TI12-security/trunk/python/Tests/openid-provider/op/op/config/middleware.py

    r4082 r4105  
    4141    app = PylonsApp() 
    4242 
     43    from op.lib.rendering import OpenIDProviderKidRendering 
     44     
    4345    # CUSTOM MIDDLEWARE HERE (filtered by error handling middlewares) 
    44     app = OpenIDProviderMiddleware(app, base_url='http://localhost:8700') 
     46    app = OpenIDProviderMiddleware(app, base_url='http://localhost:8700', 
     47                                   renderingClass=OpenIDProviderKidRendering) 
    4548    app = authkit.authenticate.middleware(app, app_conf) 
    4649    app = SessionMiddleware(app) 
Note: See TracChangeset for help on using the changeset viewer.