Skip to content

Conversation

@gIthuriel
Copy link
Contributor

@gIthuriel gIthuriel commented Oct 13, 2020

Adds the ExchangeToken() function and support structs, but depends on #439

@google-cla google-cla bot added the cla: yes label Oct 13, 2020
@gopherbot
Copy link
Contributor

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 comments slash command (e.g. /comments off)
See the Wiki page for more info



ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
if diff := cmp.Diff(*r, serverReq); diff != "" {

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

headerAuth := r.Header.Get("Authorization")

@gopherbot
Copy link
Contributor

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 comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Contributor

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 comments slash command (e.g. /comments off)
See the Wiki page for more info

@gIthuriel gIthuriel marked this pull request as ready for review October 19, 2020 21:43
@gopherbot
Copy link
Contributor

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 comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Contributor

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 comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Contributor

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 comments slash command (e.g. /comments off)
See the Wiki page for more info

@gIthuriel gIthuriel changed the title Draft showing WIP testing approach TokenExchange functionality, dependent on #439 Oct 19, 2020
@gopherbot
Copy link
Contributor

Message from Cody Oss:

Patch Set 7:

(13 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/261918.
After addressing review feedback, remember to publish your drafts!

Change-Id: If664a760005cc209c7398f2efce5ff324ebc4746
@gopherbot
Copy link
Contributor

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 comments slash command (e.g. /comments off)
See the Wiki page for more info

@gIthuriel gIthuriel changed the title TokenExchange functionality, dependent on #439 google: add ExchangeToken() to run STS exchanges. Nov 3, 2020
@gopherbot
Copy link
Contributor

Message from Patrick Jones:

Patch Set 7:

(13 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/261918.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Cody Oss:

Patch Set 9:

(8 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/261918.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Patrick Jones:

Patch Set 7:

(13 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/261918.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Cody Oss:

Patch Set 9:

(8 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/261918.
After addressing review feedback, remember to publish your drafts!

Change-Id: Idafbe36f4add6998e57878fec84a1080ac962511
@gopherbot
Copy link
Contributor

Message from Patrick Jones:

Patch Set 9:

(7 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/261918.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

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 comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Contributor

Message from Go Bot:

Patch Set 17:

Build is still in progress...
This change failed on freebsd-amd64-12_0:
See https://storage.googleapis.com/go-build-log/3d913a92/freebsd-amd64-12_0_2c8f2d84.log

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.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Go Bot:

Patch Set 17: TryBot-Result-1

9 of 9 TryBots failed:
Failed on freebsd-amd64-12_0: https://storage.googleapis.com/go-build-log/3d913a92/freebsd-amd64-12_0_2c8f2d84.log
Failed on linux-amd64-race: https://storage.googleapis.com/go-build-log/3d913a92/linux-amd64-race_083dab24.log
Failed on linux-386: https://storage.googleapis.com/go-build-log/3d913a92/linux-386_03494fa0.log
Failed on windows-amd64-2016: https://storage.googleapis.com/go-build-log/3d913a92/windows-amd64-2016_ae11e07f.log
Failed on windows-386-2008: https://storage.googleapis.com/go-build-log/3d913a92/windows-386-2008_1142aa5a.log
Failed on openbsd-amd64-64: https://storage.googleapis.com/go-build-log/3d913a92/openbsd-amd64-64_3436459d.log
Failed on linux-amd64: https://storage.googleapis.com/go-build-log/3d913a92/linux-amd64_2bcb45cf.log
Failed on linux-amd64 (Go 1.14.x): https://storage.googleapis.com/go-build-log/9e27a089/linux-amd64_81beb715.log
Failed on linux-amd64 (Go 1.15.x): https://storage.googleapis.com/go-build-log/16ddb8bc/linux-amd64_5901898b.log

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.
After addressing review feedback, remember to publish your drafts!

gIthuriel and others added 21 commits December 2, 2020 15:30
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
@google-cla
Copy link

google-cla bot commented Dec 2, 2020

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.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@google-cla google-cla bot added cla: no and removed cla: yes labels Dec 2, 2020
@gopherbot
Copy link
Contributor

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 comments slash command (e.g. /comments off)
See the Wiki page for more info

gopherbot pushed a commit that referenced this pull request Dec 3, 2020
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>
@gIthuriel
Copy link
Contributor Author

Change was successfully cherry-picked on December 2, 2020; this PR was simply left over. Closing now.

@gIthuriel gIthuriel closed this Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants