I'm trying to migrate a legacy app that uses Flask-OAuth to authlib. The documentation of authlib is fairly decent, but what would be helpful is a migration guide, because I don't really know what parts of flask-oauthlib are similar to parts of authlib.
For example (and this is just one example): flask-oauthlib
has a class called OAuth2RequestValidator
under the providers
package. I don't know if I can safely rip this or what part of authlib replaces this. Also the old code uses verify_request
. What is the equivalent in authlib?Just a quick guide - old
: used this
. new
: replace with (link to) this
.
I have looked at the issue Flask-oauthlib or authlib in production? and the migrations in the udata
project, but that project is very large and not that easy to follow. A basic flask-oauthlib
example and just some comments about what classes replace, and where in the documentation would be very helpful to get people to adopt the new libraries.