- Add generic OIDCClient supporting RFC 8414 dynamic discovery and JWKS key retrieval - Implement RFC 7636 PKCE code_verifier generation and S256 code_challenge derivation - Implement transaction integrity rejecting invalid/missing state (HTTP 400) and mismatched nonce (HTTP 401) - Implement cryptographic ID token signature and claims verification against JWKS (HTTP 401) - Add comprehensive unit and live test suite in tests/test_oidc_client.py
40 lines
807 B
Python
40 lines
807 B
Python
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",
|
|
"OIDCClient",
|
|
"OIDCConfig",
|
|
"OIDCError",
|
|
"OIDCTransaction",
|
|
"TokenExchangeError",
|
|
"TokenResponse",
|
|
"compute_code_challenge",
|
|
"generate_code_verifier",
|
|
"generate_nonce",
|
|
"generate_state",
|
|
]
|