source: TI12-security/trunk/python/Tests/openid-provider/op/op/ @ 4081

Subversion URL:
Revision 4081, 393 bytes checked in by pjkersha, 11 years ago (diff)

First working version of an OpenID Provider as opposed to a Relying Party as avail. with AuthKit?. The code is taken from the HTTPServer example in the Python OpenID package and refactored into WSGI middleware.

  • - WSGI middleware package
  • Tests/openid-provider/op: pylons project test harness for the above

TODO: integrate into AuthKit? and Beaker Session Middleware as required.

1"""Setup the op application"""
2import logging
4from paste.deploy import appconfig
5from pylons import config
7from op.config.environment import load_environment
9log = logging.getLogger(__name__)
11def setup_config(command, filename, section, vars):
12    """Place any commands to setup op here"""
13    conf = appconfig('config:' + filename)
14    load_environment(conf.global_conf, conf.local_conf)
Note: See TracBrowser for help on using the repository browser.