tba-concrete-cwt 0.4.0.dev2__tar.gz → 0.4.0.dev3__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.
- {tba_concrete_cwt-0.4.0.dev2 → tba_concrete_cwt-0.4.0.dev3}/PKG-INFO +1 -1
- {tba_concrete_cwt-0.4.0.dev2 → tba_concrete_cwt-0.4.0.dev3}/pyproject.toml +1 -1
- {tba_concrete_cwt-0.4.0.dev2 → tba_concrete_cwt-0.4.0.dev3}/src/tba_concrete_cwt/claims.py +3 -1
- {tba_concrete_cwt-0.4.0.dev2 → tba_concrete_cwt-0.4.0.dev3}/README.md +0 -0
- {tba_concrete_cwt-0.4.0.dev2 → tba_concrete_cwt-0.4.0.dev3}/src/tba_concrete_cwt/__init__.py +0 -0
- {tba_concrete_cwt-0.4.0.dev2 → tba_concrete_cwt-0.4.0.dev3}/src/tba_concrete_cwt/py.typed +0 -0
- {tba_concrete_cwt-0.4.0.dev2 → tba_concrete_cwt-0.4.0.dev3}/src/tba_concrete_cwt/tagged.py +0 -0
|
@@ -7,7 +7,8 @@ from typing import Mapping
|
|
|
7
7
|
import cbor2
|
|
8
8
|
|
|
9
9
|
CWT_CLAIM_LABELS = MappingProxyType(
|
|
10
|
-
{"iss": 1, "sub": 2, "aud": 3, "exp": 4, "nbf": 5, "iat": 6, "cti": 7, "cnf": 8
|
|
10
|
+
{"iss": 1, "sub": 2, "aud": 3, "exp": 4, "nbf": 5, "iat": 6, "cti": 7, "cnf": 8,
|
|
11
|
+
"actx": "actx", "ath": "ath"}
|
|
11
12
|
)
|
|
12
13
|
|
|
13
14
|
|
|
@@ -26,6 +27,7 @@ class CwtClaimsSet:
|
|
|
26
27
|
raise ValueError("CWT claim labels must be text strings or integers")
|
|
27
28
|
object.__setattr__(self, "claims", MappingProxyType(normalized))
|
|
28
29
|
|
|
30
|
+
# Draft extension names retain text keys until numeric labels are assigned.
|
|
29
31
|
def get_registered(self, name: str, default: object = None) -> object:
|
|
30
32
|
label = CWT_CLAIM_LABELS[name]
|
|
31
33
|
return self.claims.get(label, self.claims.get(name, default))
|
|
File without changes
|
{tba_concrete_cwt-0.4.0.dev2 → tba_concrete_cwt-0.4.0.dev3}/src/tba_concrete_cwt/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|