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:
StrEnumCanonical 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:
BaseModelPublic 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 perapplication.auth.AuthProviderKinddirectly fromcore.config.Settings.resultis the typedProviderProbeResult;summaryis the localised one-line operator-facing verdict.- Parameters:
provider (str)
result (ProviderProbeResult | str)
summary (str)
- 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.Settingsand classifies the local configuration health without any network call or active-profile session. Returns a typedProviderConfigurationProbe; it never raises for a missing or malformed configuration — an absent provider surfaces asProviderProbeResult.NO_PATH_SET/ProviderProbeResult.IDENTITY_UNSET, a broken one asexpired/corrupt/invalid_identity.- Return type:
- Parameters: