-
Notifications
You must be signed in to change notification settings - Fork 999
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
oauth2: support device flow #609
Conversation
This PR (HEAD: bc6a2d2) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/oauth2/+/450155 to see it. Tip: You can toggle comments from me using the |
Message from Gopher Robot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be Please don’t reply on this GitHub thread. Visit golang.org/cl/450155. |
This PR (HEAD: 6c5e40d) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/oauth2/+/450155 to see it. Tip: You can toggle comments from me using the |
Pull from upstream's PR golang#609, and merge into local branch so I can push to my fork.
OAuth2 golang/oauth2#609 adds support for Device Code authorization flow. As part of that change, it adds DeviceCodeURL to the Provider and ProviderConfig structs. This change adds support for populating the new field from device_authorization_endpoint obtained from the well-known endpoint.
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 came here looking to contribute a Device Flow impl and was happy to see it was already in progress! Thanks to all those that have contributed to this 🙏
I've added a couple of comments from the implementation I've done which I think are relevant here.
Very much looking forward to seeing this merged!
0f38476
to
549316c
Compare
This PR (HEAD: 549316c) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/oauth2/+/450155 to see it. Tip: You can toggle comments from me using the |
This PR (HEAD: 2a9d404) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/oauth2/+/450155 to see it. Tip: You can toggle comments from me using the |
Message from Matt Hickford: Patch Set 9: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/450155. |
Message from Gopher Robot: Patch Set 9: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/450155. |
Message from Gopher Robot: Patch Set 9: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/450155. |
Message from Frank Somers: Patch Set 9: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/450155. |
This PR (HEAD: 8c7208a) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/oauth2/+/450155 to see it. Tip: You can toggle comments from me using the |
This PR (HEAD: fa1978c) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/oauth2/+/450155 to see it. Tip: You can toggle comments from me using the |
This PR (HEAD: c0aa320) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/oauth2/+/450155 to see it. Tip: You can toggle comments from me using the |
This PR (HEAD: 02610a4) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/oauth2/+/450155 to see it. Tip: You can toggle comments from me using the |
This PR (HEAD: b825c25) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/oauth2/+/450155 to see it. Tip: You can toggle comments from me using the |
This PR (HEAD: ccad9d9) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/oauth2/+/450155 to see it. Tip: You can toggle comments from me using the |
Message from Matt Hickford: Patch Set 19: Run-TryBot+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/450155. |
Message from Matt Hickford: Patch Set 27: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/450155. |
Message from Gopher Robot: Patch Set 27: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/450155. |
Message from Gopher Robot: Patch Set 27: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/450155. |
This PR (HEAD: 79f7325) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/oauth2/+/450155. Important tips:
|
Message from Jorropo: Patch Set 28: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/450155. |
Message from Gopher Robot: Patch Set 28: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/450155. |
Message from Gopher Robot: Patch Set 28: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/450155. |
Message from Matt Hickford: Patch Set 28: Commit-Queue+1 Run-TryBot+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/450155. |
Message from Matt Hickford: Patch Set 28: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/450155. |
Message from Go LUCI: Patch Set 28: CV cannot start a Run for Please don’t reply on this GitHub thread. Visit golang.org/cl/450155. |
Message from Matt Hickford: Patch Set 28: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/450155. |
Message from Bryan Mills: Patch Set 28: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/450155. |
Message from Bryan Mills: Patch Set 28: Code-Review+1 (6 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/450155. |
Message from Matt Hickford: Patch Set 28: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/450155. |
This PR (HEAD: 9a126d7) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/oauth2/+/450155. Important tips:
|
Message from Matt Hickford: Patch Set 29: (6 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/450155. |
Message from Matt Hickford: Patch Set 29: Commit-Queue+1 Run-TryBot+1 Copied votes on follow-up patch sets have been updated:
(2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/450155. |
Message from Matt Hickford: Patch Set 30: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/450155. |
Message from Go LUCI: Patch Set 30: CV cannot start a Run for Please don’t reply on this GitHub thread. Visit golang.org/cl/450155. |
Message from Go LUCI: Patch Set 30: LUCI-TryBot-Result-1 Please don’t reply on this GitHub thread. Visit golang.org/cl/450155. |
Message from Gopher Robot: Patch Set 30: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/450155. |
Message from Gopher Robot: Patch Set 30: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/450155. |
Message from Than McIntosh: Patch Set 30: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/450155. |
Device Authorization Grant following RFC 8628 https://datatracker.ietf.org/doc/html/rfc8628 Tested with GitHub Fixes #418 Fixes golang/go#58126 Co-authored-by: cmP <[email protected]> Change-Id: Id588867110c6a5289bf1026da5d7ead88f9c7d14 GitHub-Last-Rev: 9a126d7 GitHub-Pull-Request: #609 Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/450155 Commit-Queue: Bryan Mills <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Than McIntosh <[email protected]> Auto-Submit: Bryan Mills <[email protected]> Run-TryBot: Matt Hickford <[email protected]> Reviewed-by: Bryan Mills <[email protected]> Run-TryBot: Bryan Mills <[email protected]>
This PR is being closed because golang.org/cl/450155 has been merged. |
Device Authorization Grant following RFC 8628 https://datatracker.ietf.org/doc/html/rfc8628 Tested with GitHub Fixes golang#418 Fixes golang/go#58126 Co-authored-by: cmP <[email protected]> Change-Id: Id588867110c6a5289bf1026da5d7ead88f9c7d14 GitHub-Last-Rev: 9a126d7 GitHub-Pull-Request: golang#609 Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/450155 Commit-Queue: Bryan Mills <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Than McIntosh <[email protected]> Auto-Submit: Bryan Mills <[email protected]> Run-TryBot: Matt Hickford <[email protected]> Reviewed-by: Bryan Mills <[email protected]> Run-TryBot: Bryan Mills <[email protected]>
Device Authorization Grant following RFC 8628 https://datatracker.ietf.org/doc/html/rfc8628
Tested with GitHub
Fixes #418
Fixes golang/go#58126
Co-authored-by: cmP [email protected]