source: trunk/ndg_oauth/ndg_oauth_server/repoze_who.ini @ 8075

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg-security/trunk/ndg_oauth/ndg_oauth_server/repoze_who.ini@8075
Revision 8075, 2.3 KB checked in by pjkersha, 9 years ago (diff)

Working test config with bearer type pattern

  • modified 'myproxy' access token type to more generically named 'slcs' = Short Lived Credential Service
  • fixed call to build_opener following change to interface for this in ndg_httpsclient
Line 
1[plugin:redirector]
2# identification and challenge
3use = repoze.who.plugins.redirector:make_plugin
4login_url = /authentication/login_form
5came_from_param = returnurl
6
7[plugin:auth_tkt]
8# identification and authentication
9use = repoze.who.plugins.auth_tkt:make_plugin
10secret = s33kr1t
11cookie_name = oatmeal
12secure = False
13include_ip = False
14
15[plugin:basicauth]
16# identification and challenge
17use = repoze.who.plugins.basicauth:make_plugin
18realm = 'sample'
19
20[plugin:htpasswd]
21# authentication
22use = repoze.who.plugins.htpasswd:make_plugin
23filename = %(here)s/passwd
24check_fn = repoze.who.plugins.htpasswd:crypt_check
25
26[plugin:sqlusers]
27# authentication
28use = ndg.oauth.server.lib.utils.repoze_who_utils:make_authenticator_plugin
29# Use #(login)s, which is translated to %(login)s - this gets round lack of escaping in ConfigParser.
30query = SELECT openid, md5passwd FROM tbusers where accountid = #(login)s
31conn_factory = ndg.oauth.server.lib.utils.repoze_who_utils:make_psycopg_conn_factory
32compare_fn = ndg.oauth.server.lib.utils.repoze_who_utils:md5_password_compare
33connection_string = host=<databasehost> dbname=<databasename> user=<user> password=<password>
34# The recommended configuration does not work, at least with repoze.who v2.0:
35#use = repoze.who.plugins.sql:make_authenticator_plugin
36#query = "SELECT userid, password FROM users where login = %(login)s;"
37#conn_factory = repoze.who.plugins.sql:make_psycopg_conn_factory
38#compare_fn = repoze.who.plugins.sql:default_password_compare
39
40#[plugin:sqlproperties]
41#name = properties
42#use = repoze.who.plugins.sql:make_metadata_plugin
43#query = "SELECT firstname, lastname FROM users where userid = %(__userid)s;"
44#filter = my.package:filter_propmd
45#conn_factory = repoze.who.plugins.sql:make_psycopg_conn_factory
46
47[general]
48request_classifier = repoze.who.classifiers:default_request_classifier
49challenge_decider = repoze.who.classifiers:default_challenge_decider
50remote_user_key = REMOTE_USER
51
52[identifiers]
53# plugin_name;classifier_name:.. or just plugin_name (good for any)
54plugins =
55      auth_tkt
56      basicauth
57
58[authenticators]
59# plugin_name;classifier_name.. or just plugin_name (good for any)
60plugins =
61      auth_tkt
62      htpasswd
63#      sqlusers
64
65[challengers]
66# plugin_name;classifier_name:.. or just plugin_name (good for any)
67plugins =
68      redirector;browser
69      basicauth
70
71#[mdproviders]
72#plugins =
73#      sqlproperties
Note: See TracBrowser for help on using the repository browser.