What problem does it solve?
Google Cloud Authentication prevents failed Google API calls by guiding you to the correct credential type and fixing common auth misconfigurations like invalid_grant, missing scopes, and ADC credential discovery errors.
Core Features & Use Cases
- OAuth 2.0 Authorization Code flow: Set up installed or web app consent with PKCE, handle refresh tokens, and recover from invalid_grant by re-authorizing.
- Service Account JWT bearer: Authenticate backend jobs with a key.json (or environment/secret injection), enable the required APIs, and grant access at the resource level (optionally with domain-wide delegation).
- Application Default Credentials (ADC): Use GOOGLE_APPLICATION_CREDENTIALS, gcloud ADC, or GCP metadata/workload identity to avoid managing keys in code.
- Error diagnosis & recovery: Map 401/403/429/token endpoint errors to the right fixes (refresh vs re-consent vs enable API vs scope/resource permissions).
Quick Start
Use the google-cloud-auth skill to pick the correct auth method for your target API, then follow its referenced setup instructions to obtain valid credentials and minimum scopes for the task you’re running.