Closed trilader closed 2 years ago
What country are you in? There might be some hardcoded EU region URLs.
I'm located in Germany.
I've confirmed that this is happening to me, too. The login page is now returning:
{
"error": "access_denied",
"error_description": "login session expired"
}
There is a new login flow that has a separate step to select the login method. I'll update hc-login
to use the new correct URL.
Ah. I didn't know it was different before. I've tried to have a go at this myself and I'm halfway there with setting up an Android emulator with mitmproxy. I still need to patch the app w.r.t. certificate pinning (apktool really took its time unpacking the app).
As you have a working setup I'll likely pause my setup efforts (I only have a little free time left for this today and I am busy tomorrow evening) and have a look on Wednesday if more figuring out is needed.
Adding redirect_target=icore
seems to have fixed it for me. Please let me know if this also fixed it for you!
hc-login
works now and (after a quick and dirty MQTT hostname change) and config.json edit (my hostnames are all lower case) hc2mqtt prints that it published messages
Glad to hear it worked!
DNS resolved host names should be case insensitive, so you shouldn't have to edit them. My local network (using dnsmasq
for dhcp and dns) does it correctly, but of course that is no guarantee for every network. And I've heard that some embedded mDNS implementations are using strcmp()
instead of strcasecmp()
, which makes them accidentally case sensitive.
The mqtt config needs to be separated out, I created https://github.com/osresearch/hcpy/issues/6 to remind me to get around to it.
I've added a print statement after the "Did not get a redirect" message to print both the status code as well as the response text and headers:
Do you have any idea on how to debug this/what I can check? Logging in with the same credentials on my phone works and the app is usable there.