Hi,

kris wrote:
> Can werkzeug easily support authentication in the Wiki demo that you
> provided?
Usually people create their own auth systems based on the secure cookie.
 A minimal example is provided here that allows login/logout [1].

> For example, i would need the roles admin, editor, and read-only on
> the wikiforum.
You could easily attach a role attribute to your user model.

> I have manually coded authentication in the games site and would
> synchronize username password (and maybe session) through the Mysql
> database.
If you don't want to create a simple auth&auth system based on secure
cookie and your database layer there are ready-to-use solutions in the
repoze project which work with any WSGI environment including werkzeug
[2].  I have not used it myself so far, but people are quite happy with it.

Here an example how to use it with a WSGI application [3].


Regards,
Armin

[1]: http://dev.pocoo.org/projects/werkzeug/browser/examples/cookieauth.py
[2]: http://static.repoze.org/whodocs/
[3]:
http://static.repoze.org/whodocs/narr.html#module-repoze.who.middleware

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" 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/pocoo-libs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to