Skip to content

Commit

Permalink
fix: Remove base64 encoding of OAuth Bearer token
Browse files Browse the repository at this point in the history
  • Loading branch information
jimisola committed Jun 29, 2023
1 parent 1363e92 commit e9c3117
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 e9c3117

Please sign in to comment.