Skip to content

Document using JSON string to create credentials from service account. #7291

Closed

Description

@tab1293

It would be beneficial to be able to create a client instance using a service account file whose JSON contents have already been loaded in to memory. Currently from_service_account_json only supports loading a service account file from disk. This makes it difficult to create a client in scenarios where you are loading service account JSON contents from some external service and don't necessarily want to store the contents in a file where your application is running.

Activity

  1. added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    api: datastoreIssues related to the Datastore API.
    api: pubsubIssues related to the Pub/Sub API.
    api: bigtableIssues related to the Bigtable API.
    api: loggingIssues related to the Cloud Logging API.
    api: visionIssues related to the Cloud Vision API.
    api: monitoringIssues related to the Cloud Monitoring API.
    api: speechIssues related to the Speech-to-Text API.
    api: spannerIssues related to the Spanner API.
    api: languageIssues related to the Cloud Natural Language API API.
    api: cloudtraceIssues related to the Cloud Trace API.
    on Feb 6, 2019
  2. 25 remaining items

  3. changed the title [-]Support using JSON string to create client from service account [/-] [+]Document using JSON string to create credentials from service account.[/+] on Jul 26, 2019
  4. added
    type: docsImprovement to the documentation for an API.
    and removed
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    on Jul 26, 2019
  5. tseaver commented on Jul 26, 2019

    @tseaver
    Contributor

    Rather than adding a from_service_account_json classmethod factory to each of the 95 or so clients which currently have from_service_account_file factories, let's instead just document how to construct credentials from JSON.

  6. simonobe commented on Dec 10, 2020

    @simonobe

    are you kidding me that this is not supported?:D or is this just not updated as of yet?

  7. mik-laj commented on Dec 16, 2020

    @mik-laj
    Contributor

    @busunkim96 Is it done?

  8. iennae commented on Apr 9, 2021

    @iennae
    Contributor

    The PR was merged on December 14, and the details look up to date now with a working example. Please reopen if the update is insufficient. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: automlIssues related to the AutoML API.api: bigquerydatatransferIssues related to the BigQuery Data Transfer Service API.api: bigquerystorageIssues related to the BigQuery Storage API.api: bigtableIssues related to the Bigtable API.api: cloudassetIssues related to the Cloud Asset Inventory API.api: clouderrorreportingIssues related to the Error Reporting API.api: cloudiotIssues related to the IoT Core API.api: cloudkmsIssues related to the Cloud Key Management Service API.api: cloudschedulerIssues related to the Cloud Scheduler API.api: cloudtasksIssues related to the Cloud Tasks API.api: cloudtraceIssues related to the Cloud Trace API.api: containerIssues related to the Kubernetes Engine API API.api: coreapi: dataprocIssues related to the Managed Service for Apache Spark API.api: datastoreIssues related to the Datastore API.api: dlpIssues related to the Sensitive Data Protection API.api: firestoreIssues related to the Firestore API.api: iamIssues related to the Identity and Access Management API.api: languageIssues related to the Cloud Natural Language API API.api: loggingIssues related to the Cloud Logging API.api: monitoringIssues related to the Cloud Monitoring API.api: osloginIssues related to the Cloud OS Login API API.api: pubsubIssues related to the Pub/Sub API.api: redisIssues related to the Memorystore for Redis API.api: securitycenterIssues related to the Security Command Center API.api: spannerIssues related to the Spanner API.api: speechIssues related to the Speech-to-Text API.api: texttospeechIssues related to the Text-to-Speech API.api: videointelligenceIssues related to the Video Intelligence API API.api: visionIssues related to the Cloud Vision API.api: websecurityscannerIssues related to the Web Security Scanner API.authcodegentype: docsImprovement to the documentation for an API.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions