Skip to content

fix: allow signed post policy v4 with service account and token#1356

Merged
cojenco merged 2 commits intogoogleapis:mainfrom
cojenco:sign1351
Oct 4, 2024
Merged

fix: allow signed post policy v4 with service account and token#1356
cojenco merged 2 commits intogoogleapis:mainfrom
cojenco:sign1351

Conversation

@cojenco
Copy link
Contributor

@cojenco cojenco commented Oct 1, 2024

Allow client.generate_signed_post_policy_v4() to use a service account email and access token.
If service_account_email and access_token is passed in, bypass the signed credentials check.

Note that we are working with partner teams on revamping the signed urls methods and may supersede this change

Fixes #1351 🦕

@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: storage Issues related to the googleapis/python-storage API. labels Oct 1, 2024
@cojenco cojenco marked this pull request as ready for review October 1, 2024 22:26
@cojenco cojenco requested a review from a team as a code owner October 1, 2024 22:26
@cojenco cojenco requested a review from a team October 1, 2024 22:26
@cojenco cojenco added the owlbot:run Add this label to trigger the Owlbot post processor. label Oct 4, 2024
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Oct 4, 2024
@cojenco cojenco merged commit 8ec02c0 into googleapis:main Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the googleapis/python-storage API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

generate_signed_post_policy_v4() should not call ensure_signed_credentials() when service_account_email and access_token are specified

2 participants