- Map verified claims to typed Identity domain model (sub, email, name) - Extract group memberships from configured claim path with fallback to empty list - Enforce identity origin integrity rejecting unvalidated request-controlled headers - Provide OIDCAuthAdapter fulfilling the AuthPort hexagonal protocol contract - Add unit and live integration test suite verifying admin and guest fixture users
42 lines
867 B
Python
42 lines
867 B
Python
from .adapter import OIDCAuthAdapter
|
|
from .identity import Identity
|
|
from .oidc import (
|
|
AuthorizationRequest,
|
|
DiscoveryError,
|
|
InvalidStateError,
|
|
InvalidTokenError,
|
|
MismatchedNonceError,
|
|
OIDCClient,
|
|
OIDCConfig,
|
|
OIDCError,
|
|
OIDCTransaction,
|
|
TokenExchangeError,
|
|
TokenResponse,
|
|
compute_code_challenge,
|
|
generate_code_verifier,
|
|
generate_nonce,
|
|
generate_state,
|
|
)
|
|
from .port import AuthPort
|
|
|
|
__all__ = [
|
|
"AuthPort",
|
|
"AuthorizationRequest",
|
|
"DiscoveryError",
|
|
"Identity",
|
|
"InvalidStateError",
|
|
"InvalidTokenError",
|
|
"MismatchedNonceError",
|
|
"OIDCAuthAdapter",
|
|
"OIDCClient",
|
|
"OIDCConfig",
|
|
"OIDCError",
|
|
"OIDCTransaction",
|
|
"TokenExchangeError",
|
|
"TokenResponse",
|
|
"compute_code_challenge",
|
|
"generate_code_verifier",
|
|
"generate_nonce",
|
|
"generate_state",
|
|
]
|