

def create_oauth_provider(self, app):

    def at_generator(request):
        return 'foobar'

    def rt_generator(request):
        return 'abracadabra'
    app.config['OAUTH2_PROVIDER_TOKEN_GENERATOR'] = at_generator
    app.config['OAUTH2_PROVIDER_REFRESH_TOKEN_GENERATOR'] = rt_generator
    return default_provider(app)

dataset/ETHPy150Open lepture/flask-oauthlib/tests/oauth2/test_oauth2.py TestRefreshTokenGenerator.create_oauth_provider/original