We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d0c122 commit b1eb3aeCopy full SHA for b1eb3ae
oidc_provider/lib/utils/oauth2.py
@@ -21,7 +21,7 @@ def extract_access_token(request):
21
"""
22
auth_header = request.META.get('HTTP_AUTHORIZATION', '')
23
24
- if re.compile('^[Bb]earer\s{1}.+$').match(auth_header):
+ if re.compile(r'^[Bb]earer\s{1}.+$').match(auth_header):
25
access_token = auth_header.split()[1]
26
else:
27
access_token = request.GET.get('access_token', '')
@@ -39,7 +39,7 @@ def extract_client_auth(request):
39
40
41
42
- if re.compile('^Basic\s{1}.+$').match(auth_header):
+ if re.compile(r'^Basic\s{1}.+$').match(auth_header):
43
b64_user_pass = auth_header.split()[1]
44
try:
45
user_pass = b64decode(b64_user_pass).decode('utf-8').split(':')
0 commit comments