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

Last change on this file since 10462 was 10461, checked in by uli, 11 years ago

Add a sample config that deploys kofa auth.

File size: 1.0 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# Services (moodle instances or whatever) and running Kofa instances
18# we use to authenticate.  Each Supported kofa instance needs a name,
19# and is configured by a dict with `auth_url` and `service_url`
20# options. The `auth_url` is the URL where we check credentials. The
21# `services_url` tells for what service the url should be checked.
22auth_services = {
23  'kofa_inst1':
24    {'auth_url': 'http://localhost:6666/app1/',
25     'service_url': 'http://mymoodle/foo/bar',
26    },
27  'kofa_inst2':
28    {'auth_url': 'http://localhost:6666/app2/',
29     'service_url': 'http://othermoodle/bar/baz',
30    },
31  }
Note: See TracBrowser for help on using the repository browser.