We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68b13b5 commit 9311e69Copy full SHA for 9311e69
oras/auth/token.py
@@ -65,7 +65,6 @@ def authenticate_request(
65
return headers, False
66
67
# If we have a token, set auth header (base64 encoded user/pass)
68
- # Else if
69
if self.token:
70
headers["Authorization"] = "Bearer %s" % self.token
71
return headers, True
@@ -160,7 +159,6 @@ def request_anonymous_token(self, h: auth_utils.authHeader) -> bool:
160
159
# From https://docs.docker.com/registry/spec/auth/token/ section
161
# We can get token OR access_token OR both (when both they are identical)
162
data = response.json()
163
- print("data: %s" % data)
164
token = data.get("token") or data.get("access_token")
165
166
# Update the headers but not self.token (expects Basic)
0 commit comments