def add_taobao_login(config,
                     consumer_key,
                     consumer_secret,
                     login_path='/login/taobao',
                     callback_path='/login/taobao/callback',
                     name='taobao'):
    provider = TaobaoProvider(name, consumer_key, consumer_secret)

    config.add_route(provider.login_route, login_path)
    config.add_view(provider, attr='login', route_name=provider.login_route,
                    permission=NO_PERMISSION_REQUIRED)

    config.add_route(provider.callback_route, callback_path,
                     use_global_views=True,
                     factory=provider.callback)

    register_provider(config, name, provider)
Add a Taobao login provider to the application.
dataset/ETHPy150Open bbangert/velruse/velruse/providers/taobao.py/add_taobao_login