Skip to content

Commit

Permalink
Revert "fix encode_client_secret_basic to match rfc6749"
Browse files Browse the repository at this point in the history
This reverts commit d2d1f49.
  • Loading branch information
lepture committed Aug 24, 2024
1 parent 63c9fb6 commit 01f1243
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions authlib/oauth2/auth.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
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
from .rfc6750 import add_bearer_token


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
Expand Down

0 comments on commit 01f1243

Please sign in to comment.