Files
bdinvite/backend/app/auth/__init__.py
T
kiskaadee b3f06659d9 feat(auth): map verified OIDC claims to domain Identity and groups
- 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
2026-10-07 06:48:57 -05:00

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",
]