oras 0.2.1__tar.gz → 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {oras-0.2.1/oras.egg-info → oras-0.2.2}/PKG-INFO +1 -1
- {oras-0.2.1 → oras-0.2.2}/oras/auth/token.py +4 -1
- {oras-0.2.1 → oras-0.2.2}/oras/version.py +1 -1
- {oras-0.2.1 → oras-0.2.2/oras.egg-info}/PKG-INFO +1 -1
- {oras-0.2.1 → oras-0.2.2}/LICENSE +0 -0
- {oras-0.2.1 → oras-0.2.2}/MANIFEST.in +0 -0
- {oras-0.2.1 → oras-0.2.2}/README.md +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras/__init__.py +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras/auth/__init__.py +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras/auth/base.py +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras/auth/basic.py +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras/auth/utils.py +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras/client.py +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras/container.py +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras/decorator.py +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras/defaults.py +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras/logger.py +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras/main/__init__.py +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras/main/login.py +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras/oci.py +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras/provider.py +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras/schemas.py +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras/tests/__init__.py +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras/tests/annotations.json +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras/tests/artifact.txt +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras/tests/conftest.py +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras/tests/run_registry.sh +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras/tests/test_oci.py +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras/tests/test_oras.py +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras/tests/test_provider.py +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras/tests/test_utils.py +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras/tests/upload_data/artifact.txt +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras/types.py +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras/utils/__init__.py +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras/utils/fileio.py +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras/utils/request.py +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras.egg-info/SOURCES.txt +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras.egg-info/dependency_links.txt +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras.egg-info/not-zip-safe +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras.egg-info/requires.txt +0 -0
- {oras-0.2.1 → oras-0.2.2}/oras.egg-info/top_level.txt +0 -0
- {oras-0.2.1 → oras-0.2.2}/pyproject.toml +0 -0
- {oras-0.2.1 → oras-0.2.2}/setup.cfg +0 -0
- {oras-0.2.1 → oras-0.2.2}/setup.py +0 -0
|
@@ -57,7 +57,6 @@ class TokenAuth(AuthBackend):
|
|
|
57
57
|
"""
|
|
58
58
|
if refresh:
|
|
59
59
|
self.token = None
|
|
60
|
-
|
|
61
60
|
authHeaderRaw = original.headers.get("Www-Authenticate")
|
|
62
61
|
if not authHeaderRaw:
|
|
63
62
|
logger.debug(
|
|
@@ -122,7 +121,11 @@ class TokenAuth(AuthBackend):
|
|
|
122
121
|
logger.debug(f"Scope: {h.scope}")
|
|
123
122
|
params["scope"] = h.scope
|
|
124
123
|
|
|
124
|
+
# Set Basic Auth to receive token
|
|
125
|
+
headers["Authorization"] = "Basic %s" % self._basic_auth
|
|
126
|
+
|
|
125
127
|
authResponse = self.session.get(h.realm, headers=headers, params=params) # type: ignore
|
|
128
|
+
|
|
126
129
|
if authResponse.status_code != 200:
|
|
127
130
|
logger.debug(f"Auth response was not successful: {authResponse.text}")
|
|
128
131
|
return
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|