Skip to content

Commit a2fa52e

Browse files
author
james.gardner@okfn.org
committedMar 10, 2011
[packaging] moving who.ini
1 parent 4ac54e1 commit a2fa52e

File tree

3 files changed

+61
-59
lines changed

3 files changed

+61
-59
lines changed
 

‎MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ include ckan/config/deployment.ini_tmpl
22
recursive-include ckan/public *
33
recursive-include ckan/templates *
44
recursive-include ckan/requires *
5+
recursive-include ckan *.ini
56
include CHANGELOG.txt

‎ckan/config/who.ini

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
[plugin:auth_tkt]
2+
use = repoze.who.plugins.auth_tkt:make_plugin
3+
secret = somesecret
4+
5+
[plugin:friendlyform]
6+
use = repoze.who.plugins.friendlyform:FriendlyFormPlugin
7+
login_form_url= /user/login
8+
login_handler_path = /login_generic
9+
logout_handler_path = /user/logout
10+
rememberer_name = auth_tkt
11+
post_login_url = /user/logged_in
12+
post_logout_url = /user/logged_out
13+
14+
#[plugin:basicauth]
15+
#use = repoze.who.plugins.basicauth:make_plugin
16+
#realm = 'CKAN'
17+
18+
[plugin:openid]
19+
use = repoze.who.plugins.openid:make_identification_plugin
20+
store = file
21+
store_file_path = %(here)s/sstore
22+
#openid_field = openid
23+
openid_field = openid_identifier
24+
came_from_field = came_from
25+
error_field = error
26+
session_name = beaker.session
27+
login_form_url = /user/login
28+
login_handler_path = /login_openid
29+
logout_handler_path = /user/logout
30+
# important they go via here after login
31+
logged_in_url = /user/logged_in
32+
logged_out_url = /user/logged_out
33+
rememberer_name = auth_tkt
34+
# Not supported without an upgrade to "repoze.who.plugins.openid>=0.5.3"
35+
#ax_optional = nickname=http://axschema.org/namePerson/friendly email=http://schema.openid.net/contact/email fullname=http://axschema.org/namePerson
36+
#sreg_optional = nickname email fullname
37+
38+
[general]
39+
request_classifier = repoze.who.classifiers:default_request_classifier
40+
# challenge_decider = repoze.who.classifiers:default_challenge_decider
41+
challenge_decider = repoze.who.plugins.openid.classifiers:openid_challenge_decider
42+
43+
[identifiers]
44+
plugins =
45+
friendlyform;browser
46+
openid
47+
auth_tkt
48+
49+
[authenticators]
50+
plugins =
51+
ckan.lib.authenticator:OpenIDAuthenticator
52+
ckan.lib.authenticator:UsernamePasswordAuthenticator
53+
54+
[challengers]
55+
plugins =
56+
openid
57+
friendlyform;browser
58+
# basicauth
59+

‎who.ini

-59
This file was deleted.

‎who.ini

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ckan/config/who.ini

0 commit comments

Comments
 (0)
Please sign in to comment.