Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jun 17, 2024. It is now read-only.

Migrate SignedJwtAssertionCredentials to ServiceAccountCredentials#67

Open
ZenaMel wants to merge1 commit intogooglesamples:master
base:master
Choose a base branch
Loading
fromZenaMel:patch-1

Conversation

@ZenaMel
Copy link

Explanation:
SignedJwtAssertionCredentials was removed from the oath2client python package in the 2.0.0 update. It was no more under oauth2client.client. The behaviour has been moved onto oauth2client.service_account.ServiceAccountCredentials.

Seethis SO thread for more info.

Additional Notes

Developers need to perform following tasks on their dependencies in order for this to work:

pip install pyOpenSSL
pip install --upgrade oauth2client

…s to ServiceAccountCredentialsExplanation:SignedJwtAssertionCredentials was removed from the oath2client python package in the 2.0.0 update. It was no more under oauth2client.client. The behaviour has been moved onto oauth2client.service_account.ServiceAccountCredentials.See [this SO thread](https://stackoverflow.com/a/35666374/12675239) for more info.## Additional NotesDevelopers need to perform following tasks on their dependencies in order for this to work:`pip install pyOpenSSL``pip install --upgrade oauth2client`
@google-cla
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝Please visithttps://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with@googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️Googlers:Go here for more info.

Copy link
Author

@ZenaMelZenaMel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

CLA signed.

@ZenaMel
Copy link
Author

@googlebot I signed it!

@google-clagoogle-clabot added cla: yes and removed cla: no labelsOct 15, 2020
@ZenaMelZenaMel changed the titleMigrate [DEPRECATED]SignedJwtAssertionCredentials to ServiceAccountCredentialsMigrate SignedJwtAssertionCredentials to ServiceAccountCredentialsOct 15, 2020
fromapiclient.discoveryimportbuild
importhttplib2
fromoauth2clientimportclient
fromoauth2client.service_accountimportServiceAccountCredentials

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I think you forgot to actually use it. You are still usingSignedJwtAssertionCredentials.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Also,oauth2client is deprecated now, so I would probably completely replace this sample with one using theCredentials fromgoogle.oauth2 instead.

NOTE: I am not part of the Google community, just sharing my opinion

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I think you forgot to actually use it. You are still usingSignedJwtAssertionCredentials.

You're right! I overlooked that.

Also,oauth2client is deprecated now, so I would probably completely replace this sample with one using theCredentials fromgoogle.oauth2 instead.

NOTE: I am not part of the Google community, just sharing my opinion

Yeah, I'll leave it open to Google and on how they decide to proceed with the samples. Good to have your comment here though for others to read.

Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

1 more reviewer

@SebadstSebadstSebadst left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@ZenaMel@Sebadst

[8]ページ先頭

©2009-2025 Movatter.jp