Skip to content

Commit 04a6508

Browse files
committed
Fix issue 315
1 parent f31a8ea commit 04a6508

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

oauth2_provider/views/base.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ def get(self, request, *args, **kwargs):
115115
# at this point we know an Application instance with such client_id exists in the database
116116
application = get_application_model().objects.get(client_id=credentials['client_id']) # TODO: cache it!
117117
kwargs['application'] = application
118-
kwargs.update(credentials)
118+
kwargs['client_id'] = credentials['client_id']
119+
kwargs['redirect_uri'] = credentials['redirect_uri']
120+
kwargs['response_type'] = credentials['response_type']
121+
kwargs['state'] = credentials['state']
122+
119123
self.oauth2_data = kwargs
120124
# following two loc are here only because of https://code.djangoproject.com/ticket/17795
121125
form = self.get_form(self.get_form_class())

0 commit comments

Comments
 (0)