Skip to content

Commit a3b56d5

Browse files
authored
Merge pull request #28 from jimisola/feature/fix_oauth_auth
fix: Remove base64 encoding of OAuth Bearer token
2 parents 1363e92 + e9c3117 commit a3b56d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/maven_artifact/requestor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def request(self, url, onFail, onSuccess=None, method: str = "get", **kwargs):
2525
elif Utils.is_base64(self.password):
2626
headers["Authorization"] = f"Basic {self.password}"
2727
elif self.token:
28-
headers["Authorization"] = f"Bearer {base64.b64encode(self.token.encode()).decode()}"
28+
headers["Authorization"] = f"Bearer {self.token}"
2929

3030
try:
3131
response = getattr(requests, method)(url, headers=headers, **kwargs)

0 commit comments

Comments
 (0)