source: main/waeup.cas/trunk/waeup/cas/tests/sample3.ini @ 11984

Last change on this file since 11984 was 10473, checked in by uli, 11 years ago

Use a different configuration for backends.

File size: 1.3 KB
Line 
1# A sample config to run WSGI components with paster
2# This config is with kofa auth enabled
3[app:main]
4use = egg:waeup.cas#server
5
6# SQLAlchemy connection string
7# By default we get an in-memory SQLite database
8# Samples:
9#   sqlite in-memory db:  sqlite://:memory:
10#   sqlite file-based db: sqlite:////path/to/db
11db = sqlite:///:memory:
12
13# Authentication module (one required/allowed)
14# waeup.cas provides 'dummy' and 'kofa1' (see setup.py entry points)
15auth = kofa1
16
17# Backends (running Kofa instances) we use to authenticate.  Each
18# Supported kofa instance needs a name, and is configured by a dict
19# with `url` and `marker` options. The `url` is the URL where we check
20# credentials via XMLRPC. The `marker` is a regular expression that
21# might match a username. When checking credentials, we only pick
22# backends for which the respective marker matches.
23#
24# For example for username 'ABC01234' we would query only the first
25# backend instance. For username 'BC01212' we ould query only the
26# second instance. If a username matches multiple markers, we will
27# query each of the respective instances and return success when the
28# first backend replies with a positive result.
29auth_backends = {
30  'kofa_inst1':
31    {'url': 'http://localhost:6666/app1/',
32     'marker': '^AB',
33    },
34  'kofa_inst2':
35    {'url': 'http://localhost:6666/app2/',
36     'marker': '^BC',
37    },
38  }
Note: See TracBrowser for help on using the repository browser.