Skip to content

Commit

Permalink
Add support for Circle-Token header based auth (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
alpinweis authored May 26, 2022
1 parent 7e478f0 commit c9a245a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### [0.5.2] - 2022-05-26
* Add support for Circle-Token header based auth

### [0.5.1] - 2022-01-30
* Update deprecated Retry option

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.5.1
0.5.2
2 changes: 1 addition & 1 deletion pycircleci/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,7 @@ def _request(self, verb, endpoint, data=None, params=None, api_version=None):
:returns: A JSON object with the response from the API.
"""
headers = {"Accept": "application/json"}
headers = {"Accept": "application/json", "Circle-Token": self.token}
auth = HTTPBasicAuth(self.token, "")
resp = None

Expand Down

0 comments on commit c9a245a

Please sign in to comment.