Skip to content

Commit

Permalink
fix(oauth2): unquote username and password for basic auth
Browse files Browse the repository at this point in the history
  • Loading branch information
lepture committed Aug 24, 2024
1 parent 66d5b19 commit 63c9fb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion authlib/oauth2/rfc6749/util.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import base64
import binascii
from urllib.parse import unquote
from authlib.common.encoding import to_unicode


Expand Down Expand Up @@ -36,5 +37,5 @@ def extract_basic_authorization(headers):
return None, None
if ':' in query:
username, password = query.split(':', 1)
return username, password
return unquote(username), unquote(password)
return query, None

0 comments on commit 63c9fb6

Please sign in to comment.