-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(internal): [AIP-4111] support scopes for self-signed JWT auth fl…
…ow (#1075) - A **self-signed JWT flow** will be executed if the following conditions are met: - One of the following is true: (a) The scope for self-signed JWT flow is enabled (`EnableJwtWithScope` == true) (b) Custom audiences are explicitly provided by users (c) No scopes are provided at all - No service account impersonation - Otherwise, executes **standard OAuth 2.0 flow** as fallback - Following cases will result in error: - Neither scopes nor audiences are available with the service account JSON - Malformed or empty JSON input More information for self-signed JWT at: https://google.aip.dev/auth/4111
- Loading branch information
Showing
4 changed files
with
168 additions
and
34 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