Skip to content

Commit

Permalink
[packaging] moving who.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Mar 10, 2011
1 parent 4ac54e1 commit a2fa52e
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 59 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ include ckan/config/deployment.ini_tmpl
recursive-include ckan/public *
recursive-include ckan/templates *
recursive-include ckan/requires *
recursive-include ckan *.ini
include CHANGELOG.txt
59 changes: 59 additions & 0 deletions ckan/config/who.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
[plugin:auth_tkt]
use = repoze.who.plugins.auth_tkt:make_plugin
secret = somesecret

[plugin:friendlyform]
use = repoze.who.plugins.friendlyform:FriendlyFormPlugin
login_form_url= /user/login
login_handler_path = /login_generic
logout_handler_path = /user/logout
rememberer_name = auth_tkt
post_login_url = /user/logged_in
post_logout_url = /user/logged_out

#[plugin:basicauth]
#use = repoze.who.plugins.basicauth:make_plugin
#realm = 'CKAN'

[plugin:openid]
use = repoze.who.plugins.openid:make_identification_plugin
store = file
store_file_path = %(here)s/sstore
#openid_field = openid
openid_field = openid_identifier
came_from_field = came_from
error_field = error
session_name = beaker.session
login_form_url = /user/login
login_handler_path = /login_openid
logout_handler_path = /user/logout
# important they go via here after login
logged_in_url = /user/logged_in
logged_out_url = /user/logged_out
rememberer_name = auth_tkt
# Not supported without an upgrade to "repoze.who.plugins.openid>=0.5.3"
#ax_optional = nickname=http://axschema.org/namePerson/friendly email=http://schema.openid.net/contact/email fullname=http://axschema.org/namePerson
#sreg_optional = nickname email fullname

[general]
request_classifier = repoze.who.classifiers:default_request_classifier
# challenge_decider = repoze.who.classifiers:default_challenge_decider
challenge_decider = repoze.who.plugins.openid.classifiers:openid_challenge_decider

[identifiers]
plugins =
friendlyform;browser
openid
auth_tkt

[authenticators]
plugins =
ckan.lib.authenticator:OpenIDAuthenticator
ckan.lib.authenticator:UsernamePasswordAuthenticator

[challengers]
plugins =
openid
friendlyform;browser
# basicauth

59 changes: 0 additions & 59 deletions who.ini

This file was deleted.

1 change: 1 addition & 0 deletions who.ini

0 comments on commit a2fa52e

Please sign in to comment.