Expand description
Session state machine for the access connector.
authenticating → active → expired → authenticating (refresh cycle)
→ revoked (terminal: rejected credential)
→ closed (terminal: explicit shutdown)Entering Revoked or Closed drops the bearer and clears the key store.
Structs§
- Session
Manager 🔒 - Manages the connector session lifecycle. All mutable state sits behind one async
Mutex, so at most one renewal is in flight.Debugis hand-written to avoid leaking the token or bearer. - Session
State 🔒
Enums§
- Session
Error 🔒 - Errors returned by
SessionManager::bearerandSessionManager::force_refresh. - Session
Lost 🔒 - Terminal session-loss variants exposed to callers.
- Session
Phase 🔒 - Observable phases of the connector session.
Constants§
- BACKOFF_
BASE 🔒 - BACKOFF_
CAP 🔒 - NO_
DEADLINE_ 🔒MAX_ TRIES - Renewal attempt count for a
Nonedeadline. - TOKEN_
RENEW_ 🔒MARGIN_ SECS - Proactive renewal margin, matching bitwarden-auth’s
TOKEN_RENEW_MARGIN_SECONDS.