Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Pluggable auth support #995

Merged
merged 58 commits into from
May 10, 2022
Merged

feat: Pluggable auth support #995

merged 58 commits into from
May 10, 2022

Conversation

renkelvin
Copy link
Contributor

Adding pluggable auth support.

Chuan Ren added 2 commits March 1, 2022 14:14
* Port identity pool credentials

* access_token retrieved

* -> pluggable

* Update pluggable.py

* Create test_pluggable.py

* Unit tests

* Address pr issues
* Add file cache

* feat: add output file cache support
@renkelvin renkelvin changed the title Pluggable auth support feat: Pluggable auth support [Do not merge] Mar 17, 2022
@arithmetic1728 arithmetic1728 added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Mar 17, 2022
Copy link
Contributor

@lsirac lsirac left a comment

Choose a reason for hiding this comment

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

First pass. I didn't review the tests. Thanks Chuan!

google/auth/pluggable.py Outdated Show resolved Hide resolved
google/auth/pluggable.py Show resolved Hide resolved
google/auth/pluggable.py Outdated Show resolved Hide resolved
google/auth/pluggable.py Show resolved Hide resolved
google/auth/pluggable.py Outdated Show resolved Hide resolved
google/auth/pluggable.py Outdated Show resolved Hide resolved
google/auth/pluggable.py Outdated Show resolved Hide resolved
google/auth/pluggable.py Outdated Show resolved Hide resolved
google/auth/pluggable.py Outdated Show resolved Hide resolved
google/auth/pluggable.py Outdated Show resolved Hide resolved
@renkelvin
Copy link
Contributor Author

Hmm, I can't push to the pluggable branch. I may need to create a new pr from my fork.

@renkelvin
Copy link
Contributor Author

Hey @arithmetic1728, mind giving me the temporary write access to this repo? It should make the review much easier.

@arithmetic1728
Copy link
Contributor

@renkelvin you need to join https://github.com/googleapis first, then I can give you temporary write access

@renkelvin
Copy link
Contributor Author

@renkelvin you need to join https://github.com/googleapis first, then I can give you temporary write access

Done joining https://github.com/googleapis

@arithmetic1728
Copy link
Contributor

@renkelvin I just gave you the write access, let me know if it doesn't work.

@renkelvin
Copy link
Contributor Author

@renkelvin I just gave you the write access, let me know if it doesn't work.

It works, thanks!

google/auth/pluggable.py Outdated Show resolved Hide resolved
google/auth/pluggable.py Outdated Show resolved Hide resolved
google/auth/pluggable.py Outdated Show resolved Hide resolved
@renkelvin
Copy link
Contributor Author

@arithmetic1728 Any ideas how can I add pytest_subprocess as a dev dependency just for testing purpose? Thanks! https://source.cloud.google.com/results/invocations/e6b81a67-add0-4bfa-9089-fe92b4cc7007/targets/github%2Fgoogle-auth-library-python/tests

@arithmetic1728
Copy link
Contributor

@arithmetic1728
Copy link
Contributor

You can run the following easily-to-fail kokoro tests locally before pushing to github. This will save a lot of time. (Don't worry about the kokoro system-3.7 failure - It is caused by expired creds. I will update the creds once your PR is ready to merge).

lint: python -m nox -s lint
If lint fails, run python -m nox -s blacken to format the files, then re-run lint. If it can pass, don't forget to add and commit the changes.

cover: python -m nox -s cover

@renkelvin
Copy link
Contributor Author

You can run the following easily-to-fail kokoro tests locally before pushing to github. This will save a lot of time. (Don't worry about the kokoro system-3.7 failure - It is caused by expired creds. I will update the creds once your PR is ready to merge).

lint: python -m nox -s lint If lint fails, run python -m nox -s blacken to format the files, then re-run lint. If it can pass, don't forget to add and commit the changes.

cover: python -m nox -s cover

Thanks @arithmetic1728! The CI passes now.

@arithmetic1728
Copy link
Contributor

LGTM

@sai-sunder-s would you like to take another look?
@renkelvin I will fix the system test in a separate PR when we are ready to check in.

@arithmetic1728 arithmetic1728 changed the title feat: Pluggable auth support [Do not merge] feat: Pluggable auth support May 10, 2022
@arithmetic1728 arithmetic1728 merged commit 62daa73 into main May 10, 2022
@arithmetic1728 arithmetic1728 deleted the pluggable branch May 10, 2022 18:30
arithmetic1728 added a commit that referenced this pull request May 10, 2022
arithmetic1728 added a commit that referenced this pull request May 11, 2022
@renkelvin renkelvin restored the pluggable branch May 27, 2022 17:28
gcf-merge-on-green bot pushed a commit that referenced this pull request Jun 7, 2022
🤖 I have created a release *beep* *boop*
---


## [2.7.0](v2.6.6...v2.7.0) (2022-06-07)


### Features

* add experimental enterprise cert support ([#1052](#1052)) ([dda7dda](dda7dda))
* add experimental GDCH support ([#1022](#1022)) ([5367aac](5367aac))
* Pluggable auth support ([#995](#995)) ([62daa73](62daa73))


### Bug Fixes

* validate urls for external accounts ([#1031](#1031)) ([61b1f15](61b1f15))


### Reverts

* pluggable auth support [#995](#995) ([#1039](#1039)) ([513d999](513d999))
* revert experimental GDCH support ([#1022](#1022)) ([#1042](#1042)) ([c720995](c720995))


### Documentation

* fix changelog header to consistent size ([#1046](#1046)) ([e64d084](e64d084))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants