I use pylons for develop of my project. What lib I can use to authorization users? I know about authkit, but he not supported now.
Asked
Active
Viewed 181 times
2 Answers
2
Not related to Pylons specifically, I usually use repoze.who for authentication and repoze.what for authorization.

Nam Nguyen
- 1,765
- 9
- 13
-
Can you give some example for I can use it? Because I see it early but can't understood how use it. – jerboa Aug 15 '11 at 17:36
-
Basically the idea is to wrap your app in a repoze.what middleware with `setup_what`. this repoze.what middleware requires a repoze.who stuffs such as authenticators, challengers. When you need authorization check, you call `is_met` on a repoze.what predicate. There are many built-in repoze.what predicates and you can write them yourself too. I have some sample gluing code at https://bitbucket.org/vithon/vithon-forum/src/abab8f2a7aef/viforum/forum.py. It uses repoze.who.plugins.openid. – Nam Nguyen Aug 16 '11 at 06:42
1
Here's an excellent tutorial on how to use repoze.who/repoze.what. Which in my opinion is the best way to go. repoze.who/what tutorial

webjunkie
- 1,184
- 9
- 19