This commit is contained in:
Philippe Luickx 2015-08-10 11:24:21 +03:00
parent 02bf6fbe5b
commit 5a6c8f549b

View File

@ -72,14 +72,14 @@ class SocialLoginSerializer(serializers.Serializer):
code = attrs.get('code') code = attrs.get('code')
provider = self.adapter.get_provider() provider = adapter.get_provider()
scope = provider.get_scope(request) scope = provider.get_scope(request)
client = self.client_class( client = self.client_class(
request, request,
app.client_id, app.client_id,
app.secret, app.secret,
self.adapter.access_token_method, adapter.access_token_method,
self.adapter.access_token_url, adapter.access_token_url,
self.callback_url, self.callback_url,
scope scope
) )