Stay organized with collections
Save and categorize content based on your preferences.
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.
When you use the gcloud CLI to access
Developer Connect, you
log in to the gcloud CLI with a user
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eAuthentication for Developer Connect is dependent on the API interface used and the environment where the code is executed.\u003c/p\u003e\n"],["\u003cp\u003eThe Developer Connect API can be accessed programmatically via the Google Cloud CLI or REST.\u003c/p\u003e\n"],["\u003cp\u003eThe Google Cloud CLI uses user account credentials for authentication, but service account impersonation is an option if user accounts lack permissions.\u003c/p\u003e\n"],["\u003cp\u003eREST API access can be authenticated using either gcloud CLI credentials or Application Default Credentials.\u003c/p\u003e\n"],["\u003cp\u003eAfter authentication, access to Google Cloud resources is controlled by Identity and Access Management (IAM).\u003c/p\u003e\n"]]],[],null,["# Authenticate to Developer Connect\n\nThis document describes how to authenticate to Developer Connect programmatically. How\nyou authenticate to Developer Connect depends on the interface you use to access the API\nand the environment where your code is running.\n\n\nFor more information about Google Cloud authentication, see the\n[Authentication methods](/docs/authentication).\n\nAPI access\n----------\n\n\nDeveloper Connect supports programmatic access. You can access the API in\nthe following ways:\n\n- [Google Cloud CLI](#gcloud)\n- [REST](#rest)\n\n### Google Cloud CLI\n\n\nWhen you use the [gcloud CLI](/sdk/gcloud/reference) to access\nDeveloper Connect, you\n[log in to the gcloud CLI](/sdk/docs/authorizing) with a user\naccount, which provides the credentials used by the gcloud CLI commands.\n\n\nIf your organization's security policies prevent user accounts from having the required\npermissions, you can use [service account impersonation](#sa-impersonation).\n\nFor more information, see\n[Authenticate for using the gcloud CLI](/docs/authentication/gcloud).\nFor more information about using the gcloud CLI with Developer Connect,\nsee [the gcloud CLI reference pages](/sdk/gcloud/reference).\n\n\n### REST\n\n\nYou can authenticate to\n[the Developer Connect API](/developer-connect/docs/api/reference/rest)\nby using your gcloud CLI credentials or by using\n[Application Default Credentials](/docs/authentication/application-default-credentials).\nFor more information about authentication for REST requests, see\n[Authenticate for using REST](/docs/authentication/rest).\nFor information about the types of credentials, see\n[gcloud CLI credentials and ADC credentials](/docs/authentication/gcloud#gcloud-credentials).\n\nAccess control for Developer Connect\n------------------------------------\n\n\nAfter you authenticate to Developer Connect, you must be authorized to access\nGoogle Cloud resources. Developer Connect uses\nIdentity and Access Management (IAM) for authorization.\n\n\nFor more information about the roles for Developer Connect, see\n[Access control with IAM](/developer-connect/docs/access-control).\nFor more information about IAM and authorization, see\n[IAM overview](/iam/docs/overview).\n\nWhat's next\n-----------\n\n- Learn about [Google Cloud authentication methods](/docs/authentication#auth-decision-tree).\n- See a list of [authentication use cases](/docs/authentication/use-cases)."]]