I'm trying getting familiar with Authkit Authentication system used
within a Pylons website project. I went through the Authkit
documentation and followed the Pylons book recommandations (chapter
18).

What I would wish setting up is the following functionality:

1- Have a Sign In authentication link on all the website pages
2- Launch the website styled Sign In Form from the Sign In link
3- Fill in the website styled Sign In form and submit it
4- In case of Sign In success REDIRECT TO THE STARTING URL (the one
from where the sign in url has been launched; obviously I'll make the
template able to show the looged in status)
5- In case of Sign In failure, show a customized 401 error document

By following the documentation and setting   "authkit.setup.method =
form, cookie", I could go through the first three points. I'm
struggling to have functionality in point 4 satisfied.

Any help or recommandation is really much welcome.

This is the config I'm using:
authkit.setup.enable = true
authkit.setup.method = form, cookie
authkit.form.authenticate.user.type =
authkit.users.sqlalchemy_driver:UsersFromDatabase
authkit.form.authenticate.user.data = mysite.model
authkit.cookie.secret = mysecret
authkit.cookie.signoutpath = /signout
authkit.form.template.obj = mysite.lib.auth:render_signin
authkit.cookie.params.expires = 1800
authkit.cookie.enforce = true
authkit.cookie.includeip = true

Thank you in advance
Daniel


-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to