# A sample config to run WSGI components with paster # This config is with kofa auth enabled [app:main] use = egg:waeup.cas#server # SQLAlchemy connection string # By default we get an in-memory SQLite database # Samples: # sqlite in-memory db: sqlite://:memory: # sqlite file-based db: sqlite:////path/to/db db = sqlite:///:memory: # Authentication module (one required/allowed) # waeup.cas provides 'dummy' and 'kofa1' (see setup.py entry points) auth = kofa1 # Backends (running Kofa instances) we use to authenticate. Each # Supported kofa instance needs a name, and is configured by a dict # with `url` and `marker` options. The `url` is the URL where we check # credentials via XMLRPC. The `marker` is a regular expression that # might match a username. When checking credentials, we only pick # backends for which the respective marker matches. # # For example for username 'ABC01234' we would query only the first # backend instance. For username 'BC01212' we ould query only the # second instance. If a username matches multiple markers, we will # query each of the respective instances and return success when the # first backend replies with a positive result. auth_backends = { 'kofa_inst1': {'url': 'http://localhost:6666/app1/', 'marker': '^AB', }, 'kofa_inst2': {'url': 'http://localhost:6666/app2/', 'marker': '^BC', }, }