GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — core: service account auth · Issue #104 · googleapis/google-cloud-python

core: service account auth #104

New issue
Copy link
New issue
Copy link
Closed
Closed
core: service account auth#104
Copy link
Assignees
jgeewax
Labels
🚨This issue needs some love.authtriage meI really want to be triaged.

Description

@beriberikix
beriberikix
opened on Jul 29, 2014
Issue body actions

Implement authorization using the Service Account flow.

Activity

Next
  1. beriberikix
    added this to the This milestone has been deleted milestone on Jul 29, 2014
  2. beriberikix
    added
    milestone-feature
    on Jul 29, 2014
  3. jgeewax commented on Aug 1, 2014

    @jgeewax
    jgeewax
    on Aug 1, 2014
    Contributor
    More actions

    This is functional and you authenticate using the provided .p12 key.

  4. jgeewax
    closed this as completedon Aug 1, 2014
  5. silvolu
    reopened this on Aug 1, 2014
  6. silvolu commented on Aug 1, 2014

    @silvolu
    silvolu
    on Aug 1, 2014
    Contributor
    More actions

    There has been a recent change on the format of the key, tackled in this bug on the node client.
    We might want to do the same for Python, given that now when you create a new service account, the download offered is for the .json file instead of the .p12.

  7. tseaver commented on Oct 3, 2014

    @tseaver
    tseaver
    on Oct 3, 2014
    Contributor
    More actions

    The 'apiui/credential' page on the developer's console offers both P12 creds (the default) and JSON creds. oauth2client 1.3 cannot process the P12 creds:

      File "gcloud/datastore/connection.py", line 56, in _request
        method='POST', headers=headers, body=data)
      File "/home/tseaver/projects/agendaless/Google/lib/python2.7/site-packages/oauth2client-1.3-py2.7.egg/oauth2client/util.py", line 129, in positional_wrapper
        return wrapped(*args, **kwargs)
      File "/home/tseaver/projects/agendaless/Google/lib/python2.7/site-packages/oauth2client-1.3-py2.7.egg/oauth2client/client.py", line 515, in new_request
        self._refresh(request_orig)
      File "/home/tseaver/projects/agendaless/Google/lib/python2.7/site-packages/oauth2client-1.3-py2.7.egg/oauth2client/client.py", line 727, in _refresh
        self._do_refresh_request(http_request)
      File "/home/tseaver/projects/agendaless/Google/lib/python2.7/site-packages/oauth2client-1.3-py2.7.egg/oauth2client/client.py", line 751, in _do_refresh_request
        body = self._generate_refresh_request_body()
      File "/home/tseaver/projects/agendaless/Google/lib/python2.7/site-packages/oauth2client-1.3-py2.7.egg/oauth2client/client.py", line 1274, in _generate_refresh_request_body
        assertion = self._generate_assertion()
      File "/home/tseaver/projects/agendaless/Google/lib/python2.7/site-packages/oauth2client-1.3-py2.7.egg/oauth2client/client.py", line 1401, in _generate_assertion
        private_key, self.private_key_password), payload)
      File "/home/tseaver/projects/agendaless/Google/lib/python2.7/site-packages/oauth2client-1.3-py2.7.egg/oauth2client/crypt.py", line 238, in from_string
        'PKCS12 format is not supported by the PyCrypto library. '
    NotImplementedError: PKCS12 format is not supported by the PyCrypto library. Try converting to a "PEM" (openssl pkcs12 -in xxxxx.p12 -nodes -nocerts > privatekey.pem) or using PyOpenSSL if native code is an option.
    

    Converting via the suggested 'openssl' command line does not fix it, either.

  8. dhermes commented on Dec 30, 2014

    @dhermes
    dhermes
    on Dec 30, 2014
    Contributor
    More actions

    This seems to be working as intended via gcloud.credentials.get_for_service_account_p12.

  9. dhermes
    closed this as completedon Dec 30, 2014
  10. dhermes
    added
    auth
    on Dec 31, 2015
  11. dhermes
    added a commit that references this issue on Jun 9, 2017

    Firestore Client derived from google.cloud.client.Client (googleapis#104

    e605c8d
  12. yoshi-automation
    added
    triage meI really want to be triaged.
    🚨This issue needs some love.
    on Apr 7, 2020
  13. JustinBeckwith
    assigned
    jgeewax
    on Feb 1, 2021
  14. atulep
    added a commit that references this issue on Apr 3, 2023

    feat(v1p1beta1): support Model Adaptation (#104)

    ab84112
  15. 99 remaining items

  16. parthea
    added 11 commits that reference this issue on Nov 24, 2025

    build(deps): bump requests from 2.28.1 to 2.31.0 in /synthtool/gcp/te…

    8f973ec

    fix: add `charset-utf-8` to response header (#104)

    261aca0

    docs: explain how to use repeated struct.Value (#148)

    82feb3f

    chore: add 'docfx' nox session (#105)

    76b71eb

    chore: Add dependencies to prerelease validation (#104)

    79d83de

    build(python): update docfx job to use new plugin (#104)

    c75a01e

    chore: new owl bot post processor docker image (#104)

    2686bd9

    feat!: Leverage new generator, proto-plus, for google-cloud-datastore (…

    23ff3b1

    chore(python): use ubuntu 22.04 in docs image (#104)

    5f8f23c

    feat: Added `form_fields_to_bigquery()` method (#104)

    a1436bd

    chore: add license headers (#104)

    92679a2
  17. parthea
    added a commit that references this issue on Mar 2, 2026

    Release v0.4.1 (#104)

    df4e70c
  18. parthea
    added 3 commits that reference this issue on Mar 9, 2026

    refactor(storage): deprecate preserve_acl arg in copy_blob() method (#…

    441b45e

    ci: add kokoro change to synth.py (#104)

    9fdb412

    fix: use the uid for toc entries (#104)

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

Metadata

Metadata

Assignees

  • @jgeewax
    jgeewax

Labels

🚨This issue needs some love.authtriage meI really want to be triaged.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.