forked from googleapis/google-api-go-client
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(internaloption): add better support for self-signed JWT (googlea…
…pis#738) Added a couple of new internaloptions, WithDefaultAudience and WithDefaultScopes, which will be used to start using self-signed JWTs by default when certain criteria are met: 1. Authenticating with a service account. 2. User does not pass explicitly provide their own scopes. 3. An audience is provided. In the future gapic client will begin to pass these new internaloptions which will enable them to authenticate with with a JWT signed by a service account. This is a non-standard oAuth2 flow, and is an optimization to save an extra network request.
- Loading branch information
Showing
5 changed files
with
54 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters