Skip to content

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

Merged
mislav merged 3 commits into
cli:mainfrom
markandrus:support-google
Dec 16, 2022
Merged

mislav merged 3 commits into
cli:mainfrom
markandrus:support-google

Conversation

@markandrus

@markandrus markandrus commented Mar 26, 2022 •

Copy link
Copy Markdown
Contributor

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:

  • Google returns a verification_url instead of verification_uri, and
  • Google requires the client_secret when polling for tokens.

Example authentication

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

@mislav mislav left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I've pushed changes to restore backwards compatibility with PollToken and introduce new PollTokenWithOptions.

@mislav
mislav merged commit f564fe4 into cli:main Dec 16, 2022
@markandrus
markandrus deleted the support-google branch December 22, 2022 17:44
@markandrus

Copy link
Copy Markdown
Contributor Author

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 🕺

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants