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
    triage me
    on Feb 6, 2019
  2. added
    type: feature request
    api: datastore
    api: pubsub
    api: bigtable
    api: logging
    api: vision
    api: monitoring
    api: speech
    api: spanner
    api: clouderrorreporting
    api: language
    api: cloudtrace
    on Feb 6, 2019
  3. 25 remaining items

  4. 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
  5. added
    type: docs
    and removed
    type: feature request
    on Jul 26, 2019
  6. 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.

  7. added
    api: securitycenter
    api: cloudscheduler
    and removed on Jan 29, 2020
  8. 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?

  9. mik-laj commented on Dec 16, 2020

    @mik-laj
    Contributor

    @busunkim96 Is it done?

  10. 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: automlapi: bigquerydatatransferapi: bigquerystorageapi: bigtableapi: cloudassetapi: clouderrorreportingapi: cloudiotapi: cloudkmsapi: cloudschedulerapi: cloudtasksapi: cloudtraceapi: containerapi: coreapi: dataprocapi: datastoreapi: dlpapi: firestoreapi: iamapi: languageapi: loggingapi: monitoringapi: osloginapi: pubsubapi: redisapi: securitycenterapi: spannerapi: speechapi: texttospeechapi: videointelligenceapi: visionapi: websecurityscannerauthcodegentype: docs

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions