• Home
  • Raw
  • Download

Lines Matching refs:Credentials

6 Credentials and account types
9 :class:`~credentials.Credentials` are the means of identifying an application or
10 user to a service or API. Credentials can be obtained with three different types
13 Credentials from service accounts identify a particular application. These types
17 Credentials from user accounts are obtained by asking the user to authorize
24 Credentials from external accounts (workload identity federation) are used to
37 `Google Application Default Credentials`_ abstracts authentication across the
52 Application Default Credentials also support workload identity federation to
59 .. _Google Application Default Credentials:
69 service account. You can create a private key using the `Credentials page of the
85 2. Use :meth:`service_account.Credentials.from_service_account_file
86 <google.oauth2.service_account.Credentials.from_service_account_file>`::
90 credentials = service_account.Credentials.from_service_account_file(
96 3. Use :meth:`service_account.Credentials.from_service_account_info
97 <google.oauth2.service_account.Credentials.from_service_account_info>`::
104 credentials = service_account.Credentials.from_service_account_info(
127 2. Use :class:`compute_engine.Credentials`::
131 credentials = compute_engine.Credentials()
150 2. Use :class:`app_engine.Credentials`::
154 credentials = app_engine.Credentials()
193 can create a :class:`google.oauth2.credentials.Credentials` instance::
197 credentials = google.oauth2.credentials.Credentials(
203 credentials = google.oauth2.credentials.Credentials(
215 :class:`google.oauth2.credentials.Credentials` from a
333 Application Default Credentials.
334 In order to use external identities with Application Default Credentials, you
351 When using external identities with Application Default Credentials,
362 For Azure and OIDC providers, use :meth:`identity_pool.Credentials.from_info
363 <google.auth.identity_pool.Credentials.from_info>` or
364 :meth:`identity_pool.Credentials.from_file
365 <google.auth.identity_pool.Credentials.from_file>`::
372 credentials = identity_pool.Credentials.from_info(json_config_info)
376 For AWS providers, use :meth:`aws.Credentials.from_info
377 <google.auth.aws.Credentials.from_info>` or
378 :meth:`aws.Credentials.from_file
379 <google.auth.aws.Credentials.from_file>`::
386 credentials = aws.Credentials.from_info(json_config_info)
394 Impersonated Credentials allows one set of credentials issued to a user or service account
401 source_credentials = service_account.Credentials.from_service_account_file(
405 target_credentials = impersonated_credentials.Credentials(
469 downscoped_credentials = downscoped.Credentials(
489 `google.oauth2.Credentials` and used to initialize a storage client instance to
510 credentials = google.oauth2.credentials.Credentials(
531 downscoped_credentials = downscoped.Credentials(
712 google-auth can provide `Call Credentials`_ for gRPC. The easiest way to do
729 :class:`jwt.Credentials`) then you can specify ``None``.
768 .. _Call Credentials: