aeat.application.auth._protocols module¶
Protocol definitions for the application-layer auth session boundary.
These protocols declare the interface the application layer depends on for
persisted auth session management. Concrete implementations live in the
adapter layer (adapters/outbound/aeat/auth/_session_store.py) and satisfy
these protocols structurally.
SessionStoreProtocol returns PersistedSessionDataProtocol
records to the persisted-session service.
- class PersistedSessionDataProtocol(*args, **kwargs)[source]¶
Bases:
ProtocolMinimal surface the application layer reads from a persisted session record.
- class SessionStoreProtocol(*args, **kwargs)[source]¶
Bases:
ProtocolStructural interface for the persisted browser session store.
The application layer depends on this protocol rather than the concrete adapter module so that application/auth/_sessions.py does not carry a direct import from adapters/outbound/aeat/auth/_session_store.py.
- load(path)[source]¶
Load persisted session data for
path.Returns a
PersistedSessionDataProtocol, orNonewhen absent.- Return type:
- Parameters:
path (Path)