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.
Files changed (44) hide show
  1. {oras-0.2.1/oras.egg-info → oras-0.2.2}/PKG-INFO +1 -1
  2. {oras-0.2.1 → oras-0.2.2}/oras/auth/token.py +4 -1
  3. {oras-0.2.1 → oras-0.2.2}/oras/version.py +1 -1
  4. {oras-0.2.1 → oras-0.2.2/oras.egg-info}/PKG-INFO +1 -1
  5. {oras-0.2.1 → oras-0.2.2}/LICENSE +0 -0
  6. {oras-0.2.1 → oras-0.2.2}/MANIFEST.in +0 -0
  7. {oras-0.2.1 → oras-0.2.2}/README.md +0 -0
  8. {oras-0.2.1 → oras-0.2.2}/oras/__init__.py +0 -0
  9. {oras-0.2.1 → oras-0.2.2}/oras/auth/__init__.py +0 -0
  10. {oras-0.2.1 → oras-0.2.2}/oras/auth/base.py +0 -0
  11. {oras-0.2.1 → oras-0.2.2}/oras/auth/basic.py +0 -0
  12. {oras-0.2.1 → oras-0.2.2}/oras/auth/utils.py +0 -0
  13. {oras-0.2.1 → oras-0.2.2}/oras/client.py +0 -0
  14. {oras-0.2.1 → oras-0.2.2}/oras/container.py +0 -0
  15. {oras-0.2.1 → oras-0.2.2}/oras/decorator.py +0 -0
  16. {oras-0.2.1 → oras-0.2.2}/oras/defaults.py +0 -0
  17. {oras-0.2.1 → oras-0.2.2}/oras/logger.py +0 -0
  18. {oras-0.2.1 → oras-0.2.2}/oras/main/__init__.py +0 -0
  19. {oras-0.2.1 → oras-0.2.2}/oras/main/login.py +0 -0
  20. {oras-0.2.1 → oras-0.2.2}/oras/oci.py +0 -0
  21. {oras-0.2.1 → oras-0.2.2}/oras/provider.py +0 -0
  22. {oras-0.2.1 → oras-0.2.2}/oras/schemas.py +0 -0
  23. {oras-0.2.1 → oras-0.2.2}/oras/tests/__init__.py +0 -0
  24. {oras-0.2.1 → oras-0.2.2}/oras/tests/annotations.json +0 -0
  25. {oras-0.2.1 → oras-0.2.2}/oras/tests/artifact.txt +0 -0
  26. {oras-0.2.1 → oras-0.2.2}/oras/tests/conftest.py +0 -0
  27. {oras-0.2.1 → oras-0.2.2}/oras/tests/run_registry.sh +0 -0
  28. {oras-0.2.1 → oras-0.2.2}/oras/tests/test_oci.py +0 -0
  29. {oras-0.2.1 → oras-0.2.2}/oras/tests/test_oras.py +0 -0
  30. {oras-0.2.1 → oras-0.2.2}/oras/tests/test_provider.py +0 -0
  31. {oras-0.2.1 → oras-0.2.2}/oras/tests/test_utils.py +0 -0
  32. {oras-0.2.1 → oras-0.2.2}/oras/tests/upload_data/artifact.txt +0 -0
  33. {oras-0.2.1 → oras-0.2.2}/oras/types.py +0 -0
  34. {oras-0.2.1 → oras-0.2.2}/oras/utils/__init__.py +0 -0
  35. {oras-0.2.1 → oras-0.2.2}/oras/utils/fileio.py +0 -0
  36. {oras-0.2.1 → oras-0.2.2}/oras/utils/request.py +0 -0
  37. {oras-0.2.1 → oras-0.2.2}/oras.egg-info/SOURCES.txt +0 -0
  38. {oras-0.2.1 → oras-0.2.2}/oras.egg-info/dependency_links.txt +0 -0
  39. {oras-0.2.1 → oras-0.2.2}/oras.egg-info/not-zip-safe +0 -0
  40. {oras-0.2.1 → oras-0.2.2}/oras.egg-info/requires.txt +0 -0
  41. {oras-0.2.1 → oras-0.2.2}/oras.egg-info/top_level.txt +0 -0
  42. {oras-0.2.1 → oras-0.2.2}/pyproject.toml +0 -0
  43. {oras-0.2.1 → oras-0.2.2}/setup.cfg +0 -0
  44. {oras-0.2.1 → oras-0.2.2}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: oras
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: OCI Registry as Storage Python SDK
5
5
  Home-page: https://github.com/oras-project/oras-py
6
6
  Author: Vanessa Sochat
@@ -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
@@ -2,7 +2,7 @@ __author__ = "Vanessa Sochat"
2
2
  __copyright__ = "Copyright The ORAS Authors."
3
3
  __license__ = "Apache-2.0"
4
4
 
5
- __version__ = "0.2.1"
5
+ __version__ = "0.2.2"
6
6
  AUTHOR = "Vanessa Sochat"
7
7
  EMAIL = "vsoch@users.noreply.github.com"
8
8
  NAME = "oras"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: oras
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: OCI Registry as Storage Python SDK
5
5
  Home-page: https://github.com/oras-project/oras-py
6
6
  Author: Vanessa Sochat
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