implement a base of OAuth2 provider using Flask-OAuthlib

https://flask-oauthlib.readthedocs.org/en/latest/provider.html#oauth2-server