Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
Signed-off-by: tarilabs <[email protected]>
  • Loading branch information
tarilabs committed Jul 6, 2024
1 parent 6e22667 commit 1e891d2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions oras/auth/token.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ def reset_basic_auth(self):
self.set_header("Authorization", "Basic %s" % self._basic_auth)

def authenticate_request(
self, original: requests.Response, headers: dict, refresh=False, skipAnonToken=False
self,
original: requests.Response,
headers: dict,
refresh=False,
skipAnonToken=False,
):
"""
Authenticate Request
Expand Down Expand Up @@ -103,7 +107,7 @@ def request_token(self, h: auth_utils.authHeader) -> bool:
"""
params = {}
headers = {}
if self._basic_auth: # we exchange the basic auth for the token
if self._basic_auth: # we exchange the basic auth for the token
headers["Authorization"] = "Basic %s" % self._basic_auth

# Prepare request to retry
Expand Down

0 comments on commit 1e891d2

Please sign in to comment.