-
Notifications
You must be signed in to change notification settings - Fork 1k
google: add ExchangeToken() to run STS exchanges. #444
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
Conversation
|
This PR (HEAD: 8ea3602) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/oauth2/+/261918 to see it. Tip: You can toggle comments from me using the |
|
|
||
|
|
||
| ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { | ||
| if diff := cmp.Diff(*r, serverReq); diff != "" { |
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.
Instead of comparing the whole requests, you can compare each fields like
Line 101 in 5d25da1
| headerAuth := r.Header.Get("Authorization") |
|
This PR (HEAD: b838bba) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/oauth2/+/261918 to see it. Tip: You can toggle comments from me using the |
|
This PR (HEAD: 7f24b84) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/oauth2/+/261918 to see it. Tip: You can toggle comments from me using the |
|
This PR (HEAD: ddbe2ba) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/oauth2/+/261918 to see it. Tip: You can toggle comments from me using the |
|
This PR (HEAD: c19137f) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/oauth2/+/261918 to see it. Tip: You can toggle comments from me using the |
|
This PR (HEAD: 13049af) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/oauth2/+/261918 to see it. Tip: You can toggle comments from me using the |
|
Message from Cody Oss: Patch Set 7: (13 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/261918. |
Change-Id: If664a760005cc209c7398f2efce5ff324ebc4746
|
This PR (HEAD: 717b310) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/oauth2/+/261918 to see it. Tip: You can toggle comments from me using the |
|
Message from Patrick Jones: Patch Set 7: (13 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/261918. |
|
Message from Cody Oss: Patch Set 9: (8 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/261918. |
|
Message from Patrick Jones: Patch Set 7: (13 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/261918. |
|
Message from Cody Oss: Patch Set 9: (8 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/261918. |
Change-Id: Idafbe36f4add6998e57878fec84a1080ac962511
|
Message from Patrick Jones: Patch Set 9: (7 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/261918. |
|
This PR (HEAD: 4bcf502) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/oauth2/+/261918 to see it. Tip: You can toggle comments from me using the |
|
Message from Go Bot: Patch Set 17: Build is still in progress... Other builds still in progress; subsequent failure notices suppressed until final report. Consult https://build.golang.org/ to see whether they are new failures. Keep in mind that TryBots currently test exactly your git commit, without rebasing. If your commit's git parent is old, the failure might've already been fixed. Please don’t reply on this GitHub thread. Visit golang.org/cl/261918. |
google: add utilities supporting upcoming oauth2 functionality
Change-Id: If664a760005cc209c7398f2efce5ff324ebc4746
Change-Id: Idafbe36f4add6998e57878fec84a1080ac962511
Change-Id: I9c45c7848de4ab2e3a685f761c85b1c9405b6eb1
Change-Id: Id2cd28484e3724eee98757c2f40cbb237dee2c75
Change-Id: Idc322fc66cb93e5d61f0c41d5847a2567a5e1019
Change-Id: I189302ad4f49a206dd298b767a827b0263df8c43
Change-Id: I00cb6cf668073883c96ac0144847fa2693414044
Change-Id: I54d2702a149d1eccd64f8ef2ed4b4617429c9358
Change-Id: Ifc55814018bf66d2e77752d770a51c716376cabc
Change-Id: Iefbf394e5aa3bc69b5a82ec861b1b4a2b21c941a
Change-Id: I0f775143be9f66e80b3a0bc0ecf92952f41a8cd1
|
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
|
This PR (HEAD: 1aa066d) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/oauth2/+/261918 to see it. Tip: You can toggle comments from me using the |
Adds the ExchangeToken() function and support structs, but depends on #439 Change-Id: Id738a27b0c2ac083409156af1f60283b9140b159 GitHub-Last-Rev: 1aa066d GitHub-Pull-Request: #444 Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/261918 Run-TryBot: Tyler Bui-Palsulich <tbp@google.com> TryBot-Result: Go Bot <gobot@golang.org> Trust: Tyler Bui-Palsulich <tbp@google.com> Trust: Cody Oss <codyoss@google.com> Reviewed-by: Tyler Bui-Palsulich <tbp@google.com>
|
Change was successfully cherry-picked on December 2, 2020; this PR was simply left over. Closing now. |
Adds the ExchangeToken() function and support structs, but depends on #439