Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add token authentication support for the google home api #45

Merged
merged 1 commit into from
Oct 10, 2020

Conversation

Drakulix
Copy link
Contributor

@Drakulix Drakulix commented Oct 9, 2020

Since June 2019 the Google Home Local API requires authentication using a "local authorization token" for most requests. This PR changes the affected api requests to send a user-provided authentication token and switch to the now used port 8443 for the api.

A special case is the eureka_info endpoint, that can still be accessed over the old port without authentication, but provides more information, when accessed over an encrypted and authorized connection. The method thus supports calling with AND without a token.

All endpoints still work the same otherwise. There are no means added to get such a token. This remains up the library user.
However there exist multiple options since quite some time to get such token.

Recently a new method was discovered, that can be setup without frequent access to an rooted android device. As a result I was able to revive the old googlehome home-assistant integration as a custom component.

I would like to upstream this component eventually and therefor need to upstream my patches to this library at first.
Please tell me, if this approach is fine to you or if you would like to see any changes to this PR.
If merged this would probably fix(?) #44 .

Since June 2019 the Google Home Local API requires authentication using
a "local authorization token" for most requests. This commit changes the
affected api requests to send a user-provided authentication token and
switch to the now used port 8443 for the api.

A special case is the eureka_info endpoint, that can still be accessed
over the old port without authentication, but provides more information,
when accessed over an encrypted and authorized connection. The method
thus supports calling with AND without a token.
Copy link
Owner

@ludeeus ludeeus left a comment

Choose a reason for hiding this comment

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

Nice @Drakulix! 🎉

I will merge this now, and you can set your component to use the master branch here 👍

But I will not release a new version until I get the time to do manual tests, and write automatic tests for this package.

@ludeeus ludeeus merged commit 5101004 into ludeeus:master Oct 10, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants