Follow the flask-oauthlib guide to get a basic endpoint set up. Ensure that it works with a vanilla flask endpoint.
Configure your API to use the oauth decorator.
oauth = OAuth2Provider(app) api = restful.Api(app, decorators=[oauth.require_oauth('email')])
Securing Flask-Restful API with OAuth2
-
30-07-2022 - |
Решение
Не связан с StackOverflow