Skip to content

Commit

Permalink
Merge 5da71cb into 20cd2a6
Browse files Browse the repository at this point in the history
  • Loading branch information
agriffis committed Aug 21, 2015
2 parents 20cd2a6 + 5da71cb commit 59e89b8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions allauth/socialaccount/providers/oauth2/views.py
Expand Up @@ -46,6 +46,8 @@ def parse_token(self, data):


class OAuth2View(object):
oauth2client_class = OAuth2Client

@classmethod
def adapter_view(cls, adapter):
def view(request, *args, **kwargs):
Expand All @@ -64,11 +66,11 @@ def get_client(self, request, app):
protocol=protocol)
provider = self.adapter.get_provider()
scope = provider.get_scope(request)
client = OAuth2Client(self.request, app.client_id, app.secret,
self.adapter.access_token_method,
self.adapter.access_token_url,
callback_url,
scope)
client = self.oauth2client_class(self.request, app.client_id, app.secret,
self.adapter.access_token_method,
self.adapter.access_token_url,
callback_url,
scope)
return client


Expand Down

0 comments on commit 59e89b8

Please sign in to comment.