-
Notifications
You must be signed in to change notification settings - Fork 303
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
Unable to login to amazon.it/amazon.es with 2FA enabled #353
Comments
Hi Alandtse, 2019-09-09 20:15:01 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.1361617296] get |
Can you please enable debug logging on alexapy? Check the wiki for instructions. |
I had the same issue, I had to disable 2FA to make it work again. |
I think I've tracked it down as it looks like aiohttp isn't handling expired cookies properly which gets exposed with the 2FA path. Need to think of a clean workaround. Totally possible it's a configuration error on my end but I'll see if the aiohttp can reproduce the issue. |
Ended up replacing the cookiejar and submitting a patch request back to aiohttp. Until merged, the PR on gitlab should solve this. I'll stage it for the next release but anyone who is adventurous can manually replace the files. |
Describe the bug
Unable to login to amazon.it. The configurator loops at the begin stage.
This appears to only happen for the
amazon.it
domain.To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Able to log in.
Screenshots
![image](https://user-images.githubusercontent.com/7086117/64314402-c37d6e00-cf63-11e9-8f2c-82f6f34e722c.png)
This is the debug page.
System details
const.py
or HA startup): 2.1.2pip show alexapy
or HA startup): 1.1.2Logs
Additional context
The root cause is the fact something is causing Amazon to invalidate the cookies in the login process. This does not appear to happen with 2FA disabled. Other domains do not have any issues.
Original reports on 2.1.0:
https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639/3123
https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639/3141
Ok playing around more with this, it feels like only
alexa.it
has this problem and only if you have 2FA enabled. I have a new build I'll push that resolves the specific error but not the inability to use 2FA for amazon.it.Workaround when I do the new release will be to disable 2FA to get the cookie and then reenable.
Originally posted by @alandtse in #344 (comment)
The text was updated successfully, but these errors were encountered: