feat: enable self signed jwt for grpc by arithmetic1728 · Pull Request #920 · googleapis/gapic-generator-python · GitHub
Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

feat: enable self signed jwt for grpc#920

Merged
arithmetic1728 merged 3 commits into
masterfrom
sijun_jwt
Jun 16, 2021
Merged

feat: enable self signed jwt for grpc#920
arithmetic1728 merged 3 commits into
masterfrom
sijun_jwt

Conversation

@arithmetic1728

@arithmetic1728 arithmetic1728 commented Jun 14, 2021

Copy link
Copy Markdown
Contributor

For grpc transport, set always_use_jwt_access to True for service account credentials to enable self signed jwt feature. This feature is for GAPIC only, so we don't do this for http transport.

The feature relies on the changes in googleapis/google-auth-library-python#776, which introduces with_always_use_jwt_access method in service account credentials to set always_use_jwt_access.
However, since in the code we only call with_always_use_jwt_access method if this method exists, this PR is backward compatible.

@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Jun 14, 2021
@codecov

codecov Bot commented Jun 14, 2021

Copy link
Copy Markdown

@arithmetic1728 arithmetic1728 changed the title feat: enable self signe jwt for grpc feat: enable self signed jwt for grpc Jun 15, 2021
@arithmetic1728 arithmetic1728 marked this pull request as ready for review June 15, 2021 03:49
@arithmetic1728 arithmetic1728 requested review from a team, busunkim96 and software-dov June 15, 2021 03:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants