This document describes how to authenticate to Dataform programmatically. How you authenticate to Dataform 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 methods.
API access
Dataform supports programmatic access. You can access the API in the following ways:
Client libraries
The Dataform client libraries provide high-level language support for authenticating to Dataform programmatically. To authenticate calls to Google Cloud APIs, client libraries support Application Default Credentials (ADC); the libraries look for credentials in a set of defined locations and use those credentials to authenticate requests to the API. With ADC, you can make credentials available to your application in a variety of environments, such as local development or production, without needing to modify your application code.
REST
You can authenticate to the Dataform API by using your gcloud CLI credentials or by using Application Default Credentials. For more information about authentication for REST requests, see