我已经了解了lepture的authlib的工作原理,我没有一点障碍,库中有用于SQLAlchemy的模型混合,例如Authorizationcode等,但它是为sqla设计的,是否可以在mongodb中实现authlib?谢谢
答案 0 :(得分:0)
是的。您只需要为ClientMixin
,AuthorizationCodeMixin
和TokenMixin
实现缺少的方法。
在文档https://docs.authlib.org/en/latest/flask/2/authorization-server.html上有类似的句子:
以下是mixins:
结帐https://github.com/opendatateam/udata该项目正在使用mongodb。