diff --git a/authlib/oauth2/auth.py b/authlib/oauth2/auth.py index e4ad1804..c87241a9 100644 --- a/authlib/oauth2/auth.py +++ b/authlib/oauth2/auth.py @@ -1,5 +1,4 @@ import base64 -from urllib.parse import quote from authlib.common.urls import add_params_to_qs, add_params_to_uri from authlib.common.encoding import to_bytes, to_native from .rfc6749 import OAuth2Token @@ -7,7 +6,7 @@ def encode_client_secret_basic(client, method, uri, headers, body): - text = f'{quote(client.client_id)}:{quote(client.client_secret)}' + text = f'{client.client_id}:{client.client_secret}' auth = to_native(base64.b64encode(to_bytes(text, 'latin1'))) headers['Authorization'] = f'Basic {auth}' return uri, headers, body