def _get_client(self, request, callback_url):
    provider = self.adapter.get_provider()
    app = provider.get_app(request)
    scope = ' '.join(provider.get_scope())
    parameters = {}
    if scope:
        parameters['scope'] = scope
    for param in request.GET:
        if param.startswith('auth_param_'):
            try:
                parameters['auth_params'][param[11:]] = request.GET.get(param)
            except KeyError:
                parameters['auth_params'] = {param[11:]: request.GET.get(param)}
    if ('redirect_account_url' in request.GET):
        request.session['redirect_account_url'] = request.GET['redirect_account_url']
    client = OAuthClient(request, app.key, app.secret, self.adapter.request_token_url, self.adapter.access_token_url, self.adapter.authorize_url, request.GET.get('callback_url', callback_url), parameters=parameters, disable_ssl_certificate_validation=True)
    return client
def _get_client(self, request, callback_url):
    provider = self.adapter.get_provider()
    app = provider.get_app(request)
    scope = ' '.join(provider.get_scope())
    parameters = {}
    if scope:
        parameters['scope'] = scope
    for param in request.GET:
        if param.startswith('auth_param_'):
            try:
                parameters['auth_params'][param[11:]] = request.GET.get(param)
            except KeyError:
                parameters['auth_params'] = {param[11:]: request.GET.get(param)}
    if ('redirect_account_url' in request.GET):
        request.session['redirect_account_url'] = request.GET['redirect_account_url']
    client = OAuthClient(request, app.key, app.secret, self.adapter.request_token_url, self.adapter.access_token_url, self.adapter.authorize_url, request.GET.get('callback_url', callback_url), parameters=parameters, disable_ssl_certificate_validation=True)
    return client