Ignore:
Timestamp:
8 Aug 2013, 09:22:08 (11 years ago)
Author:
uli
Message:

Use a different configuration for backends.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.cas/trunk/waeup/cas/tests/sample3.ini

    r10461 r10473  
    1515auth = kofa1
    1616
    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.
    22 auth_services = {
     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 = {
    2330  'kofa_inst1':
    24     {'auth_url': 'http://localhost:6666/app1/',
    25      'service_url': 'http://mymoodle/foo/bar',
     31    {'url': 'http://localhost:6666/app1/',
     32     'marker': '^AB',
    2633    },
    2734  'kofa_inst2':
    28     {'auth_url': 'http://localhost:6666/app2/',
    29      'service_url': 'http://othermoodle/bar/baz',
     35    {'url': 'http://localhost:6666/app2/',
     36     'marker': '^BC',
    3037    },
    3138  }
Note: See TracChangeset for help on using the changeset viewer.