| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…e checks for efficiency in case of neither access_token nor service_account_email are provided. Fix: tests v4 with token to take into account not Signing credential class.
|
I really want this! |
Sorry, something went wrong.
|
Sorry for the delay, the week was awful! |
Sorry, something went wrong.
|
@tseaver any review possible on this? |
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks @guillaumeblaquiere LGTM
Sorry, something went wrong.
…is#356) * Fix: signed_url_v4 to accept credentials without private key. Preserve checks for efficiency in case of neither access_token nor service_account_email are provided. Fix: tests v4 with token to take into account not Signing credential class. * fix typo: 2 new lines before new test class * fix doc: Improve docstring to explain the use of the access_token AND the service_account_email, or the signer email. * fix: test coverage with the new IF branch * lint Co-authored-by: Tres Seaver <tseaver@palladion.com> Co-authored-by: Frank Natividad <frankyn@users.noreply.github.com> Co-authored-by: Frank Natividad <franknatividad@google.com>
…is#356) * Fix: signed_url_v4 to accept credentials without private key. Preserve checks for efficiency in case of neither access_token nor service_account_email are provided. Fix: tests v4 with token to take into account not Signing credential class. * fix typo: 2 new lines before new test class * fix doc: Improve docstring to explain the use of the access_token AND the service_account_email, or the signer email. * fix: test coverage with the new IF branch * lint Co-authored-by: Tres Seaver <tseaver@palladion.com> Co-authored-by: Frank Natividad <frankyn@users.noreply.github.com> Co-authored-by: Frank Natividad <franknatividad@google.com>
| Back | FazBrowse Home | New Git URL |
Fixes #355 🦕
I used the service_account_email passed in method parameter as "signer" instead of taking it in the credentials.signer_email method. That allows to not use google.auth.credentials.Signing type as credential parameter and to use the Service Account credential API instead.
I preserved the checks in case of access_token or service_account_email set to nil, to preserve the efficiency and the existing behavior.
I also updated tests. Successful with python 3.8.
Open to comment and to improve this PR if needed