I have learned how lepture's authlib works and i have little bit obstacle, there are model mixin like Authorizationcode etc. for SQLAlchemy in the library but it's designed for sqla, is it possible to implement authlib in mongodb? thank you
Yes. You just need to implement the missing methods for ClientMixin
, AuthorizationCodeMixin
and TokenMixin
.
On documentation https://docs.authlib.org/en/latest/flask/2/authorization-server.html there are sentences like:
Here are the mixins:
Checkout https://github.com/opendatateam/udata This project is using mongodb.