Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

ServiceAccountCredentials.from_json_keyfile_name() ignores token_uri setting in JSON. #513

Closed
BrandonY opened this issue May 25, 2016 · 4 comments

Comments

@BrandonY
Copy link

BrandonY commented May 25, 2016

Steps to reproduce:

  1. Generate a service_account.json file.
  2. Add a line to JSON file like so:
"token_uri": "https://some-other-auth-uri.website.com/o/oauth2/token",
  1. Run this program:
from oauth2client.service_account import ServiceAccountCredentials

def main():
  creds = ServiceAccountCredentials.from_json_keyfile_name('service_account.json')
  print creds.token_uri    # Prints "https://www.googleapis.com/etc"
@theacodes
Copy link
Contributor

@thobrla related to your stuff?

@thobrla
Copy link
Contributor

thobrla commented May 25, 2016

Yes, #510 should fix this.

@theacodes
Copy link
Contributor

Thanks. :)

@thobrla
Copy link
Contributor

thobrla commented May 26, 2016

Actually, the pull request will need to be amended to support this specific case (where we get the token_uri from the file). I'll work on that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants