Flask-oauthlib或生产中的authlib? [英] Flask-oauthlib or authlib in production?
问题描述
我刚在我正在构建的网站中使用了flask-oauthlib.但是,我注意到该项目的首页警告使用authlib代替.
I just got flask-oauthlib working in a website I'm building. However, I noticed that the front page of the project has a warning to use authlib instead.
如果在生产中使用flask-oauthlib,是否打算迁移到authlib?有人知道完成迁移的一个简单项目回购吗?我非常感谢瞥了一眼.
If you use flask-oauthlib in production are you planning to migrate to authlib? Is anyone aware of a simple project repo where this migration has been done? I'd very much appreciate glancing at something.
flask-oauthlib页面,请注意警告:
flask-oauthlib page, note the warning:
https://flask-oauthlib.readthedocs.io/en/latest/
推荐答案
首先回答您的问题:
- 该项目已从Flask-OAuthlib迁移到Authlib: https://github.com/opendatateam/udata/pull/1434
- 然后升级到Authlib v0.6: https://github.com/opendatateam/udata/pull/1572
- This project has migrated from Flask-OAuthlib to Authlib: https://github.com/opendatateam/udata/pull/1434
- And then upgrade to Authlib v0.6: https://github.com/opendatateam/udata/pull/1572
但在 https://github.com/authlib/处查看示例会更容易example-oauth2-server
我是Flask-OAuthlib和Authlib的作者.这是区别:
I'm the author of Flask-OAuthlib and Authlib. Here is the differences:
- Flask-OAuthlib是很久以前开发的,它取决于oauthlib.现在,我比那时对OAuth有了更好的了解.
- Authlib包含从低层RFC到高层框架集成的实现.这是更正确的. RFC实施可以更好地与框架集成一起使用.
- Flask-OAuthlib是BSD许可的产品,而Authlib是AGPL的许可产品.如果许可证有问题,并且您不想购买商业许可证,则应选择Flask-OAuthlib.
- Authlib提供商业支持和许可.如果您是公司,则最好使用Authlib,因为它设计得更好,所以它具有安全邮件列表.商业计划中将会有更多功能.
这篇关于Flask-oauthlib或生产中的authlib?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!