cadrumo.adapters.outbound.aeat.auth._clave_provider_common module

Provider-neutral mechanics shared by the two Cl@ve authentication flows.

default_sede_target_url(settings)[source]

Return the shared authenticated AEAT Sede target for a Cl@ve flow.

Return type:

str

Parameters:

settings (Settings)

verification_probe_url(*, explicit_target_url, resolved_target_url, target_path, selector_url_for)[source]

Choose the probe URL without changing provider-specific selector construction.

Return type:

str

Parameters:
  • explicit_target_url (str | None)

  • resolved_target_url (str | None)

  • target_path (str)

  • selector_url_for (Callable[[str], str])

async close_clave_context(context, *, settings, logger, owner)[source]

Close one Cl@ve-owned context using its configured bounded timeout.

Return type:

bool

Parameters:
async close_clave_browser_session(session, *, settings, logger, owner)[source]

Close one Cl@ve-owned browser session using its configured bounded timeout.

Return type:

bool

Parameters: