5 messages in com.googlegroups.pylons-discussRe: authkit?
FromSent OnAttachments
Jose Galvez20 Sep 2007 13:11 
Tim Riley20 Sep 2007 14:06 
Jose Galvez20 Sep 2007 14:35 
Jose Galvez20 Sep 2007 15:06 
Dalius Dobravolskas20 Sep 2007 23:06 
Subject:Re: authkit?
From:Dalius Dobravolskas (dali@public.gmane.org)
Date:09/20/2007 11:06:11 PM
List:com.googlegroups.pylons-discuss

On 9/21/07, Jose Galvez <jj.g@public.gmane.org>
wrote:

has anyone got any working code for authkit with pylons 0.9.6 they would be willing to share? I've tried going through the examples on the wiki and I just can't get them to work. Specifically I was hopping to get the form authorization stuff to work

I'm using AuthKit 0.4 and it works with 0.9.6. I'm using version 0.4 because I have made some fixes/enchancments for form and openid methods (and author accepted them :-)). There are several methods you can use but I strongly recommend to pay attention only to 3 of them: form, forward and openid.

Here is pylons example for "form" method:

authkit.setup.enable = true authkit.setup.method = form, cookie authkit.cookie.name = authkit authkit.cookie.secret = secret encryption string authkit.form.authenticate.user.data = user:password

If you have protected resource you should be able to use it for login.

If you expect something like in TurboGears you must use forward method. There are some good examples for forward methods. Just search for it.

Anyway I recommend to ignore those two method - respect your users and use openid ;-) I'm serious. OpenId has it's own problems and some people have reported failure with using it but I have made one fix and 0.4 branch works just perfect. I have added sreg support (http://openid.net/specs/openid-simple-registration-extension-1_0.html) and that makes openid more attractable even more. Please note that 0.4 examples will not work on Windows you will need to modify them a little bit to use MySql.

Don't be afraid that it is not documented well. You can check examples at authkit\examples\docs and map that to pylons config quite straightforward.

Here is openid example from my project: authkit.setup.method = openid, cookie #authkit.cookie.name = cookiename authkit.cookie.secret = salarysecret authkit.openid.store.type = mysql authkit.openid.store.config = mysql://dalius@localhost/salary authkit.openid.path.signedin = / authkit.openid.charset = UTF-8 authkit.cookie.signoutpath = /signout authkit.openid.sreg.required = authkit.openid.sreg.optional = dob,gender authkit.openid.sreg.policy_url = http://localhost:5000 #authkit.openid.baseurl = http://127.0.0.1:5000

HTH

If you have any ideas for openid please share them. AuthKit author is quite busy but I might find some time for OpenId support.

Regards, Dalius http://blog.sandbox.lt