cli / oauth

A library for performing OAuth Device flow and Web application flow in Go client apps.
https://pkg.go.dev/github.com/cli/oauth
MIT License
460 stars 63 forks source link

Support Google "OAuth 2.0 for TV and Limited-Input Device Applications" #24

Closed markandrus closed 1 year ago

markandrus commented 2 years ago

With some minor changes, this library can be made to work with Google's "OAuth 2.0 for TV and Limited-Input Device Applications". There are just two small changes to make:

Example authentication

Copy code: QCP-GZV-LGZ
then open: https://www.google.com/device
Access token: $ACCESS_TOKEN
markandrus commented 1 year ago

Thanks, @mislav! I overlooked that I broke compatibility for PollToken, thanks for fixing it 🙌 — and I can get rid of my private fork now, woohoo 🕺