Bottle-friendly WSGI authentication library/middle

2019-02-04 22:35发布

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?

2条回答
在下西门庆
2楼-- · 2019-02-04 22:54

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.

查看更多
The star\"
3楼-- · 2019-02-04 23:08

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.

查看更多
登录 后发表回答