Bottle-friendly WSGI authentication library/middleware [closed]

て烟熏妆下的殇ゞ 提交于 2019-11-29 08:54:59

问题


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?

EDIT:

Any thoughts on barrel?


回答1:


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.




回答2:


Another option for authentication with bottle is to use the cork plugin. I've used it successfully, and it has several database (and even a non-database) backends.



来源:https://stackoverflow.com/questions/4533674/bottle-friendly-wsgi-authentication-library-middleware

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!