When you use a Cloud de Confiance cloud-based development environment such as Cloud Code, the tool uses the credentials you provided when you signed in, and manages any authorizations required. You cannot use the gcloud CLI to configure ADC in these environments. If you need to use a different user account to configure ADC, or configure ADC using a service account, use a local development environment or a Cloud de Confiance compute resource as your development environment.
In Cloud Workstations, run gcloud auth application-default login in your
workstation terminal to generate a
local ADC credential file for ADC.
What's next
- Get more information about Cloud Workstations authentication.
- Get more information about Cloud Code.
- Learn more about how ADC finds credentials.
- Authenticate for using Cloud Client Libraries.
- Authenticate for using REST.
- Explore authentication methods.