瓶子友好的WSGI身份验证库/中间件

瓶子友好的WSGI身份验证库/中间件

问题描述:

我需要的是一个轻量级的身份验证/ACL库或中间件,该库或中间件最好能够使用openID(尽管这不是至关重要的),并且可以与Bottle框架很好地兼容(即,也许不使用异常作为内部流控制机制) ).有什么建议吗?

What I need is a lightweight authentication/ACL library or middleware which is preferably capable of openID (though this is not crucial), and would play nice with bottle framework (i.e, maybe not use exceptions as an internal flow-control mechanism). Any suggestions?

对桶有任何想法吗?

我建议您查看 repoze.who 进行身份验证,并 repoze.what 进行授权.它们都被设计为通用的WSGI中间件,并且可以轻松地与任何WSGI框架一起使用.

I suggest you look to repoze.who for authentication and repoze.what for authorization. Both of them are designed to be generic WSGI middleware and easily can work with any of WSGI frameworks.