-
Notifications
You must be signed in to change notification settings - Fork 259
docs(samples): added auth samples and tests #927
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
3bd604d
docs(samples): added client code for idtoken, adc and metadata server
Sita04 bd1bc55
docs(samples): added authexplicit and copyright
Sita04 ece1c56
docs(samples): add auth with metadata server
Sita04 0c26c33
docs(samples): minor refactoring and added tests
Sita04 45449b2
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] 7ef36df
Merge branch 'main' into auth-samples
Shabirmean b2f367e
refactored acc to review comments
Sita04 01b57ad
Merge remote-tracking branch 'origin/auth-samples' into auth-samples
Sita04 b9dee60
Merge branch 'main' into auth-samples
Sita04 3ed6be0
refactored acc to review comments
Sita04 dd39fd4
Merge remote-tracking branch 'origin/auth-samples' into auth-samples
Sita04 a46ccc4
Merge branch 'main' into auth-samples
Sita04 5eb6506
refactored acc to review comments
Sita04 cc6a5a5
Merge remote-tracking branch 'origin/auth-samples' into auth-samples
Sita04 7c68634
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] 1baeebe
minor comment update
Sita04 9fc3a7a
Merge remote-tracking branch 'origin/auth-samples' into auth-samples
Sita04 b8c5f3f
Merge branch 'main' into auth-samples
Sita04 680cfdd
modified google id token verification and removed third party dependency
Sita04 1944e5d
Merge remote-tracking branch 'origin/auth-samples' into auth-samples
Sita04 a943290
removed third party deps from pom
Sita04 d7d6257
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] cf11754
Merge branch 'auth-samples' of https://github.com/googleapis/google-a…
gcf-owl-bot[bot] b910be5
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] e23fe35
Merge branch 'auth-samples' of https://github.com/googleapis/google-a…
gcf-owl-bot[bot] ada91fb
Merge branch 'main' into auth-samples
Sita04 8573bb3
Merge branch 'main' into auth-samples
Sita04 591d0e6
included comment about verifying Google ID tokens
Sita04 82d7350
Merge remote-tracking branch 'origin/auth-samples' into auth-samples
Sita04 54013b5
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
minor comment update
- Loading branch information
commit 1baeebed5764b78fcc6f2bd9e7f2366a5282e6d4
There are no files selected for viewing
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've also separated out the delegation flow from the single service account flow. It doesn't make sense to create an ID token from a delegation chain, because there's no authz included for ID tokens. So let's just stick to a single privilege-bearing (current term, subject to change) service account (no delegation chain).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reopening because you are still including delegate chain. There should be just one privilege-bearing service account and one caller, which can be represented by either a service account or a user account.
https://cloud.google.com/iam/docs/create-short-lived-credentials-direct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The delegates parameter is mandatory in the "Impersonated Credentials" API, unlike the other one we used from IAM library.
Hence, I am unable to remove it. Added clarifying comments stating that it's optional. wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we just say
// delegates: Unused for this call
or something like that? I'm concerned that the subject of chaining is very complex, and that folks will spend a lot of time trying to parse and understand what identities need to have what permission on what-- only to get to the bottom and find out it's unused. Why put them through that?