aeat.application.auth._operator_probes module

Local auth provider and persisted-session probes for operator services.

The local probe path classifies AuthProviderKind configuration with ProviderProbeResult values and reuses persisted-session metadata via load_persisted_session().

class ProviderProbeResult(*values)[source]

Bases: StrEnum

Canonical result codes returned by the per-provider local probe.

NO_PROVIDER
NO_PATH_SET
FILE_MISSING
UNREADABLE
CORRUPT
EXPIRED
EXPIRING
OK
IDENTITY_UNSET
INVALID_IDENTITY
class ProviderConfigurationProbe(**data)[source]

Bases: BaseModel

Public per-provider local configuration readiness verdict.

Wraps the pure-local _probe_configured_provider() (no network, no active-profile requirement) so the workstation doctor (aeat config check) can render one certificate / Cl@ve Móvil readiness row per application.auth.AuthProviderKind directly from core.config.Settings. result is the typed ProviderProbeResult; summary is the localised one-line operator-facing verdict.

Parameters:
provider: str
result: ProviderProbeResult | str
summary: str
probe_provider_configuration(provider, *, settings=None)[source]

Run the pure-local per-provider configuration probe for provider.

Resolves the certificate path or Cl@ve Móvil identity from core.config.Settings and classifies the local configuration health without any network call or active-profile session. Returns a typed ProviderConfigurationProbe; it never raises for a missing or malformed configuration — an absent provider surfaces as ProviderProbeResult.NO_PATH_SET / ProviderProbeResult.IDENTITY_UNSET, a broken one as expired / corrupt / invalid_identity.

Return type:

ProviderConfigurationProbe

Parameters: