cadrumo.adapters.outbound.aeat.auth.authenticator_types module

Browser protocols for concrete live AEAT authentication adapters.

The protocols mirror the subset of adapters.outbound.aeat.browser.session.BrowserSession that auth providers need, so tests and adapter callers can satisfy the same structural contract without importing Playwright directly.

exception PersistedSessionInvalidError(message=None, *, context=None, translated_message=None)[source]

Bases: AeatLoginAssertionError

Raised when a persisted AEAT browser session cannot be trusted.

Parameters:
  • message (str | None)

  • context (Mapping[str, object] | None)

  • translated_message (str | None)

Return type:

None

code
class CertificateHealthCheck(*args, **kwargs)[source]

Bases: Protocol

Callable shape used to evaluate a loaded certificate’s health.