Skip to content

Commit

Permalink
Merge pull request hamnis#28 from jimisola/feature/fix_oauth_auth
Browse files Browse the repository at this point in the history
fix: Remove base64 encoding of OAuth Bearer token
  • Loading branch information
hamnis authored Jun 29, 2023
2 parents 1363e92 + e9c3117 commit a3b56d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/maven_artifact/requestor.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def request(self, url, onFail, onSuccess=None, method: str = "get", **kwargs):
elif Utils.is_base64(self.password):
headers["Authorization"] = f"Basic {self.password}"
elif self.token:
headers["Authorization"] = f"Bearer {base64.b64encode(self.token.encode()).decode()}"
headers["Authorization"] = f"Bearer {self.token}"

try:
response = getattr(requests, method)(url, headers=headers, **kwargs)
Expand Down

0 comments on commit a3b56d5

Please sign in to comment.