1 | # A sample config to run WSGI components with paster |
---|
2 | # This config is with kofa auth enabled |
---|
3 | [app:main] |
---|
4 | use = 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 |
---|
11 | db = sqlite:///:memory: |
---|
12 | |
---|
13 | # Authentication module (one required/allowed) |
---|
14 | # waeup.cas provides 'dummy' and 'kofa1' (see setup.py entry points) |
---|
15 | auth = 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. |
---|
29 | auth_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 | } |
---|