Skip to content

Commit 0e71410

Browse files
author
Luca Corti
committed
Revert previous
1 parent 9be037c commit 0e71410

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

oauth2_provider/oauth2_validators.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from __future__ import unicode_literals
22

33
import base64
4-
import urlib
54
import logging
65
from datetime import timedelta
76

@@ -45,7 +44,7 @@ def _authenticate_basic_auth(self, request):
4544
client_id, client_secret = auth_string_decoded.split(':', 1)
4645

4746
try:
48-
request.client = Application.objects.get(client_id=urllib.unquote_plus(client_id), client_secret=urllib.unquote_plus(client_secret))
47+
request.client = Application.objects.get(client_id=client_id, client_secret=client_secret)
4948
return True
5049

5150
except Application.DoesNotExist:

0 commit comments

Comments
 (0)