def __init__(self, app):
        """Setup routes and OAuth token methods."""
        self.request_token = self.require_oauth(require_resource_owner=False)(self.request_token)
        self.access_token = self.require_oauth(require_verifier=True)(self.access_token)
        if app is not None:
            self.app = app
            self.init_app(app)
        else:
            self.app = None
dataset/ETHPy150Open ib-lundgren/flask-oauthprovider/flask_oauthprovider.py/OAuthProvider.__init__/original