Lines Matching +full:application +full:- +full:default +full:- +full:credentials
3 …-to-server interactions such as those between a web application and a Google service. For this sce…
5 …application uses a service account when the application uses Google APIs to work with its own data…
7 …application to access user data on behalf of users in the G Suite domain. For example, an applicat…
9 …application for your domain, the required permissions are automatically granted to the application…
11 …outside of the domain. If you're using G Suite domain-wide delegation, this isn't relevant to you …
13 This document describes how an application can complete the server-to-server OAuth 2.0 flow by usin…
17 …-to-server interactions, first create a service account for your project in the API Console. If yo…
19 Then, your application prepares to make authorized API calls by using the service account's credent…
21 Finally, your application can use the access token to call Google APIs.
25 https://cloud.google.com/iam/docs/creating-managing-service-account-keys#creating_service_account_k…
28 ## Delegating domain-wide authority to the service account
30 If your application runs in a G Suite domain and accesses user data, the service account that you c…
32 https://developers.google.com/admin-sdk/directory/v1/guides/delegation
41 pip install google-auth google-auth-httplib2 google-api-python-client
44 1. Create a `Credentials` object from the service account's credentials and the scopes your applica…
48 #### Application Default Credentials
50 Application Default Credentials abstracts authentication across the different Google Cloud Platform…
57 credentials, project = google.auth.default(scopes=SCOPES)
62 https://cloud.google.com/iam/docs/creating-managing-service-account-keys#creating_service_account_k…
69 credentials = service_account.Credentials.from_service_account_file(
73 Use the `credentials` object to call Google APIs in your application.
75 #### Using Domain-wide Delegation
83 credentials = service_account.Credentials.from_service_account_file(
87 Use the `credentials` object to call Google APIs in your application. The API requests would be aut…
92 To call a Google API using the `Credentials` object, complete the following steps:
94 …version 1beta3 of the [Cloud SQL Administration API](https://cloud.google.com/sql/docs/admin-api/):
99 sqladmin = googleapiclient.discovery.build('sqladmin', 'v1beta3', credentials=credentials)
102 …rvice object. For example, to list the instances of Cloud SQL databases in the example-123 project:
105 response = sqladmin.instances().list(project='example-123').execute()
110 The following example prints a JSON-formatted list of Cloud SQL instances in a project.
119 credentials = service_account.Credentials.from_service_account_file(
121 sqladmin = googleapiclient.discovery.build('sqladmin', 'v1beta3', credentials=credentials)
122 response = sqladmin.instances().list(project='exemplary-example-123').execute()