Authenticate to Developer Connect

This document describes how to authenticate to Developer Connect programmatically. How you authenticate to Developer Connect depends on the interface you use to access the API and the environment where your code is running.

For more information about Google Cloud authentication, see the authentication overview.

API access

Developer Connect supports programmatic access. You can access the API in the following ways:

Google Cloud CLI

When you use the gcloud CLI to access Developer Connect, you log in to the gcloud CLI with a Google Account, which provides the credentials used by the gcloud CLI commands.

If your organization's security policies prevent user accounts from having the required permissions, you can use service account impersonation.

For more information, see Authenticate for using the gcloud CLI. For more information about using the gcloud CLI with Developer Connect, see the gcloud CLI reference pages.


You can authenticate to the Developer Connect API by using your gcloud CLI credentials or by using Application Default Credentials. For more information about authentication for REST requests, see Authenticate for using REST. For information about the types of credentials, see gcloud CLI credentials and ADC credentials.

Access control for Developer Connect

After you authenticate to Developer Connect, you must be authorized to access Google Cloud resources. Developer Connect uses Identity and Access Management (IAM) for authorization.

For more information about the roles for Developer Connect, see Access control with IAM. For more information about IAM and authorization, see IAM overview.

What's next