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 — fix: only add IAM scope to credentials that can change scopes by busunkim96 · Pull Request #451 · googleapis/google-auth-library-python

This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Conversation

@busunkim96

@busunkim96 busunkim96 commented Mar 6, 2020 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Closes #416.

Users reported that they were no longer able to use user credentials as the parent credential. This was happening because user credentials cannot have their scopes modified after creation.

  • add system test for impersonated credentials
  • update unit test with user credential as donor credential case
  • update CONTRIBUTING.rst with new permissions necessary

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@busunkim96
fix: only add IAM scope to credentials that can change scopes
27a0b0f
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 6, 2020
busunkim96 added 3 commits March 6, 2020 20:38
@busunkim96
test: add systest for impersonated creds
1a78d82
@busunkim96
test: update unit tests
f61a9a6
@busunkim96
chore: fix lint
8dff1c6
@busunkim96 busunkim96 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 6, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 6, 2020
busunkim96 and others added 3 commits March 6, 2020 13:49
@busunkim96
Merge branch 'master' into impersonated-creds-fix
f8eed76
@busunkim96
build: update secrets
5a318f6
@busunkim96
Merge branch 'impersonated-creds-fix' of github.com:googleapis/google…
d245688
…-auth-library-python into impersonated-creds-fix
@busunkim96
busunkim96 force-pushed the impersonated-creds-fix branch from cabb98b to d245688 Compare March 6, 2020 22:24
@busunkim96 busunkim96 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 6, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 6, 2020
@busunkim96 busunkim96 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 6, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 6, 2020
@busunkim96 busunkim96 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 6, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 6, 2020
@busunkim96
docs: update contributing.rst with impersonated creds
ff0aed9
@busunkim96
busunkim96 force-pushed the impersonated-creds-fix branch from 40261be to ff0aed9 Compare March 7, 2020 00:08
@busunkim96 busunkim96 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 7, 2020
@busunkim96
docs: fix formatting
3144b0a
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 7, 2020
@busunkim96
busunkim96 requested review from bshaffer and crwilcox March 7, 2020 00:28
bshaffer
bshaffer reviewed Mar 9, 2020
View reviewed changes

@bshaffer bshaffer left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Looks great! One small implementation suggestion is all I have.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread google/auth/impersonated_credentials.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@busunkim96
busunkim96 requested a review from arithmetic1728 March 13, 2020 17:32
@arithmetic1728

arithmetic1728 commented Mar 13, 2020

Copy link
Copy Markdown
Contributor

LGTM

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

arithmetic1728
arithmetic1728 approved these changes Mar 13, 2020
View reviewed changes
busunkim96 added 2 commits March 13, 2020 12:56
@busunkim96
fix: use if credentials.Scoped instead of try/except
6c35e85
@busunkim96
fix: remove except caluse
61064aa
@busunkim96
busunkim96 merged commit 82e224b into master Mar 13, 2020
@tseaver
tseaver deleted the impersonated-creds-fix branch October 28, 2020 18:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@crwilcox crwilcox Awaiting requested review from crwilcox
2 more reviewers
@bshaffer bshaffer bshaffer left review comments
@arithmetic1728 arithmetic1728 arithmetic1728 approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Breaking changes for impersonated_credentials between 1.6.3 and 1.7.0+

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@busunkim96 @arithmetic1728 @bshaffer @googlebot @yoshi-kokoro
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.