tba-concrete-claim-client-id 0.4.0.dev2__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.
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tba-concrete-claim-client-id
|
|
3
|
+
Version: 0.4.0.dev2
|
|
4
|
+
Summary:
|
|
5
|
+
Requires-Python: >=3.10,<3.15
|
|
6
|
+
Classifier: Programming Language :: Python :: 3
|
|
7
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
12
|
+
Requires-Dist: tba-bases-claim (==0.4.0.dev2)
|
|
13
|
+
Requires-Dist: tba-primitives-identity (==0.4.0.dev2)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name="tba-concrete-claim-client-id"
|
|
3
|
+
version="0.4.0.dev2"
|
|
4
|
+
requires-python=">=3.10,<3.15"
|
|
5
|
+
dependencies=["tba-primitives-identity==0.4.0.dev2","tba-bases-claim==0.4.0.dev2"]
|
|
6
|
+
[build-system]
|
|
7
|
+
requires=["poetry-core>=1.0.0"]
|
|
8
|
+
build-backend="poetry.core.masonry.api"
|
|
9
|
+
[tool.poetry]
|
|
10
|
+
packages=[{include="tba_concrete_claim_client_id",from="src"}]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from tba_bases_claim import ClaimBase
|
|
2
|
+
from tba_primitives_identity import ClaimType, ClaimValueType
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class ClientIdClaim(ClaimBase):
|
|
6
|
+
claim_name = "client_id"
|
|
7
|
+
default_claim_type = ClaimType.AUTHORIZATION
|
|
8
|
+
default_value_type = ClaimValueType.STRING
|
|
9
|
+
default_standards = ("RFC 9068",)
|
|
10
|
+
|
|
11
|
+
@classmethod
|
|
12
|
+
def validate_value(cls, value):
|
|
13
|
+
if not isinstance(value, str) or not value:
|
|
14
|
+
raise ValueError("client_id must be a non-empty string")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
__all__ = ["ClientIdClaim"]
|
|
File without changes
|