Skip to main content

Module auth

Module auth 

Source
Expand description

Google Cloud credential retrieval and authentication handling.

Supports obtaining OAuth2 access tokens through multiple strategies:

  1. Explicitly supplied tokens.
  2. Google Application Default Credentials (ADC) via service accounts or user login.
  3. Active gcloud CLI session fallback (gcloud auth print-access-token).

Functionsยง

get_credentials
Retrieves an OAuth2 access token for Google Cloud Artifact Registry.