tba-bases-public-key-authentication 0.4.0.dev2__py3-none-any.whl
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_bases_public_key_authentication/__init__.py +10 -0
- tba_bases_public_key_authentication/attestation.py +24 -0
- tba_bases_public_key_authentication/authentication.py +23 -0
- tba_bases_public_key_authentication/bindings.py +9 -0
- tba_bases_public_key_authentication/credentials.py +15 -0
- tba_bases_public_key_authentication/evidence.py +13 -0
- tba_bases_public_key_authentication/py.typed +1 -0
- tba_bases_public_key_authentication/registration.py +23 -0
- tba_bases_public_key_authentication-0.4.0.dev2.dist-info/METADATA +21 -0
- tba_bases_public_key_authentication-0.4.0.dev2.dist-info/RECORD +11 -0
- tba_bases_public_key_authentication-0.4.0.dev2.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"""Protocol-neutral public-key authentication extension bases."""
|
|
2
|
+
|
|
3
|
+
from .attestation import *
|
|
4
|
+
from .authentication import *
|
|
5
|
+
from .bindings import *
|
|
6
|
+
from .credentials import *
|
|
7
|
+
from .evidence import *
|
|
8
|
+
from .registration import *
|
|
9
|
+
|
|
10
|
+
__all__ = [name for name in globals() if not name.startswith("_")]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from abc import ABC
|
|
2
|
+
|
|
3
|
+
from tba_contracts_public_key_authentication import (
|
|
4
|
+
AttestationStatementVerifierPort,
|
|
5
|
+
AttestationTrustResult,
|
|
6
|
+
AuthenticatorAttestation,
|
|
7
|
+
AuthenticatorMetadataProviderPort,
|
|
8
|
+
AuthenticatorMetadataResult,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class AttestationStatementVerifierBase(AttestationStatementVerifierPort, ABC):
|
|
13
|
+
def verify(
|
|
14
|
+
self, attestation: AuthenticatorAttestation, /
|
|
15
|
+
) -> AttestationTrustResult:
|
|
16
|
+
raise NotImplementedError
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class AuthenticatorMetadataProviderBase(AuthenticatorMetadataProviderPort, ABC):
|
|
20
|
+
async def resolve(self, aaguid: bytes, /) -> AuthenticatorMetadataResult:
|
|
21
|
+
raise NotImplementedError
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
__all__ = ["AttestationStatementVerifierBase", "AuthenticatorMetadataProviderBase"]
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
from abc import ABC
|
|
2
|
+
|
|
3
|
+
from tba_contracts_public_key_authentication import (
|
|
4
|
+
PublicKeyAuthenticationIntent,
|
|
5
|
+
PublicKeyAuthenticationOptions,
|
|
6
|
+
PublicKeyAuthenticationResult,
|
|
7
|
+
VerifiedPublicKeyAssertion,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class PublicKeyAssertionVerificationBase(ABC):
|
|
12
|
+
async def begin_authentication(
|
|
13
|
+
self, intent: PublicKeyAuthenticationIntent, /
|
|
14
|
+
) -> PublicKeyAuthenticationOptions:
|
|
15
|
+
raise NotImplementedError
|
|
16
|
+
|
|
17
|
+
async def complete_authentication(
|
|
18
|
+
self, assertion: VerifiedPublicKeyAssertion, /
|
|
19
|
+
) -> PublicKeyAuthenticationResult:
|
|
20
|
+
raise NotImplementedError
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
__all__ = ["PublicKeyAssertionVerificationBase"]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from abc import ABC
|
|
2
|
+
|
|
3
|
+
from tba_contracts_public_key_authentication import (
|
|
4
|
+
PublicKeyCredentialSource,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class PublicKeyCredentialResolverBase(ABC):
|
|
9
|
+
async def find_by_external_id(
|
|
10
|
+
self, tenant_id: str, rp_id: str, external_id: bytes, /
|
|
11
|
+
) -> PublicKeyCredentialSource | None:
|
|
12
|
+
raise NotImplementedError
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
__all__ = ["PublicKeyCredentialResolverBase"]
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from abc import ABC
|
|
2
|
+
|
|
3
|
+
from tba_contracts_public_key_authentication import (
|
|
4
|
+
PublicKeyAuthenticationEvidence,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class PublicKeyEvidenceEvaluatorBase(ABC):
|
|
9
|
+
def evaluate(self, evidence: PublicKeyAuthenticationEvidence, /) -> tuple[str, ...]:
|
|
10
|
+
raise NotImplementedError
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
__all__ = ["PublicKeyEvidenceEvaluatorBase"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
from abc import ABC
|
|
2
|
+
|
|
3
|
+
from tba_contracts_public_key_authentication import (
|
|
4
|
+
CredentialRegistrationResult,
|
|
5
|
+
PublicKeyRegistrationIntent,
|
|
6
|
+
PublicKeyRegistrationOptions,
|
|
7
|
+
VerifiedCredentialRegistration,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class PublicKeyCredentialRegistrationBase(ABC):
|
|
12
|
+
async def begin_registration(
|
|
13
|
+
self, intent: PublicKeyRegistrationIntent, /
|
|
14
|
+
) -> PublicKeyRegistrationOptions:
|
|
15
|
+
raise NotImplementedError
|
|
16
|
+
|
|
17
|
+
async def complete_registration(
|
|
18
|
+
self, registration: VerifiedCredentialRegistration, /
|
|
19
|
+
) -> CredentialRegistrationResult:
|
|
20
|
+
raise NotImplementedError
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
__all__ = ["PublicKeyCredentialRegistrationBase"]
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tba-bases-public-key-authentication
|
|
3
|
+
Version: 0.4.0.dev2
|
|
4
|
+
Summary: Protocol-neutral public-key authenticator extension bases.
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
Requires-Python: >=3.10,<3.15
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
13
|
+
Requires-Dist: tba-contracts-public-key-authentication (==0.4.0.dev2)
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
|
|
16
|
+
# tba-bases-public-key-authentication
|
|
17
|
+
|
|
18
|
+
Protocol-neutral extension bases for public-key registration, assertion verification, credential lookup, attestation appraisal, and normalized evidence.
|
|
19
|
+
|
|
20
|
+
This package does not own WebAuthn wire structures, HTTP bindings, persistence, trust policy, or key loading.
|
|
21
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
tba_bases_public_key_authentication/__init__.py,sha256=v_mKhcb8Jry0FJ4CeWWFUHjoZ1GT9T_Bi75F1qmAuLc,295
|
|
2
|
+
tba_bases_public_key_authentication/attestation.py,sha256=qT8vMpe-aZCEg-8FruAovp-qzkTL6DS2TQchRmjaJkk,745
|
|
3
|
+
tba_bases_public_key_authentication/authentication.py,sha256=JfMs4vCGDVJpSmQCMl5B7p3Cp5I8fA7ptKw6Ar3YX3I,650
|
|
4
|
+
tba_bases_public_key_authentication/bindings.py,sha256=sV_GuhsnGHd8_BRRJP-2CmrVpx1DY3jJi803QIJdH5g,206
|
|
5
|
+
tba_bases_public_key_authentication/credentials.py,sha256=eArXdB1GAmMEC7TDLF1bCNdFid0GqbM-xEL9runo-hg,378
|
|
6
|
+
tba_bases_public_key_authentication/evidence.py,sha256=MtrtyN5evPd17O3xtuAW5Xx6Q84BjjPEpynILG7Usdk,329
|
|
7
|
+
tba_bases_public_key_authentication/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
8
|
+
tba_bases_public_key_authentication/registration.py,sha256=XFmFtsnaxdDl8_tWlyS9TM8IAz4NP1swTA1ahfHctgY,649
|
|
9
|
+
tba_bases_public_key_authentication-0.4.0.dev2.dist-info/METADATA,sha256=P3q3VjUH3QmAYFkl_MjHgSKG--gHhQuxDxXWAdTY85I,931
|
|
10
|
+
tba_bases_public_key_authentication-0.4.0.dev2.dist-info/WHEEL,sha256=L-WvLdSBvJWHXv5zrQxDvNRnIgoBzLUpcbuiw19KCuQ,88
|
|
11
|
+
tba_bases_public_key_authentication-0.4.0.dev2.dist-info/RECORD,,
|