Get config dictionary for vkontakte oauth

def vkontakte_config(self, id, secret, scope=None, offline=False, **_):
        """ Get config dictionary for vkontakte oauth """
        if scope is None: scope = 'email,offline'
        if offline: scope += ',offline'
        token_params = dict(scope=scope)

        config = dict(
            request_token_url=None,
            access_token_url='https://oauth.vk.com/access_token',
            authorize_url='https://oauth.vk.com/authorize',
            base_url='https://api.vk.com/method/',
            consumer_key=id,
            consumer_secret=secret,
            request_token_params=token_params
        )
        return config