-
-
Notifications
You must be signed in to change notification settings - Fork 34
display QR codes for device auth flows #93
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
base: main
Are you sure you want to change the base?
Conversation
the call site in main() exits on error, so this seems unnecessary here
661e5c4 to
1726118
Compare
use package rsc.io/qr to generate QR codes and display them in the terminal using ANSI escape codes.
1726118 to
3975945
Compare
|
tested with |
|
Super cool! Works for me too. Before merging, I'll check the packaging implications for Debian and Fedora... |
|
Fedora has 0.2.0 https://packages.fedoraproject.org/pkgs/golang-rsc-qr/golang-rsc-qr-devel/ Debian has an older, untagged version |
|
Would you like me to make any changes to the PR? I’m on vacation this week and won’t be able to address this until Monday.
|
|
@hickford I'm back again. Are you waiting on an action or input from me? I took a look at the history of github.com/rsc/qr. It only contains 3 commits; Judging by the sha in the version, debian seems to ship the oldest one. The two commits since only introduced |
|
Thanks for investigating. Alright, I'll merge this PR then try building the Debian package before tagging a release. |
|
|
||
| require golang.org/x/oauth2 v0.30.0 | ||
|
|
||
| require rsc.io/qr v0.2.0 |
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.
Latest version 2018 https://pkg.go.dev/rsc.io/qr but that's not necessarily a problem
use package rsc.io/qr to generate QR codes and display them in the terminal using ANSI escape codes.
Screenshot:

inspired by #41, but doesn't require installing a separate cli tool