cadrumo.adapters.outbound.google.active_profile module

Active-profile resolver for the Google OAuth Desktop integration.

Every aeat config google ... command and every secure-store read or write performed by adapters.outbound.google.oauth_flow and adapters.outbound.google.session_store is scoped to one AEAT profile. adapters.outbound.google.active_profile.resolve_active_profile() obtains that profile’s immutable bucket UUID through core.bucket_pointer.resolve_active_bucket_id(), the operator-facing precedence chain driven by core.config.Settings and the plaintext active-profile pointer file.

There is no global Google session, no shared cross-profile token, and no multi-account binding within a single profile. A missing profile is raised as adapters.outbound.google.errors.GoogleAuthProfileUnboundError so the CLI and storage factory render the same localised repair guidance.

resolve_active_profile()[source]

Return the AEAT profile UUID backing this Google OAuth call.

Return type:

str

Returns:

The resolved profile’s immutable UUID identity. Always a non-empty string.

Raises:

adapters.outbound.google.errors.GoogleAuthProfileUnboundError – When the core.bucket_pointer.resolve_active_bucket_id() precedence chain resolves to no profile. The error carries factual context naming the failed resolution attempt for renderers.