-
Notifications
You must be signed in to change notification settings - Fork 10
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
Authentication fails #25
Comments
Can you confirm which version of amazon you are trying to use please? |
Can you also please confirm wether when you connected with the client, it asked you to login. Or if it just said it was authenticated and didn't ask for any of that. |
I also have this issue. In my case, it asks to login, after typing in the credentials it authenticates without problems....but immediately after searching for the list, it says 'not authenticated'. |
Did it ask you for an MFA code after you typed your username and password? Do you have MFA on your account? Do you have a passkey setup at all? |
Yes, I have MFA and passkey. |
Passkey will be stopping you from authenticating I think, that is a reported thing #11 |
If there is one on your account, I think it asks if you want to use it and the structure of the login process changes as a result. |
I was finally able to get the list of items of my shopping list. I looked in my passkey manager and recognized that I have two different passwords for amazon, one for the amazon shopping app, and the other for the alexa app. |
Hey @madmachinations I have a similar issue. I'm running HA on Docker (host networking) and home-assistant-alexa-shopping-list on a docker network. Running python3 client.py 192.168.xx.x connects to the server, I then get no MFA prompt but the following output
|
This fix should be dealt with by the block of work being done this weekend as part of #31 |
Hello, please try again with the latest version. A number of changes have been made, not all of them deployed. But a fix for the authentication issues should be out in the latest version. It is important you delete any running version of the server you might currently have, and scrub out any of it's persisted cached files to ensure a clean slate. Then install the latest version from scratch. You will also need to download the latest client script from this repository. If you are using the server as a HASS Add-on, you should also delete the custom repository you added to install the add on, as this has now moved to here: https://github.com/madmachinations/home-assistant-alexa-shopping-list/releases So you will need to setup the new repository and install the new server version from there. As part of the changes I have migrated the build process over to github actions and I have added some extra provisions which made it irritating to deploy changes before. So moving ahead:
|
Latest version is not working on amazon.com.au. It prompts for e-mail and password and then says it is authenticated. Does not prompt for MFA although I do receive the MFA code via SMS. Trying 'list' then just says "ERROR: Not authenticated": Attempting to connect to ws://10.192.200.5:4000 Checking config Checking authentication
|
@nlenevez I see there the client says the config is valid. Which makes me think you have not purged the servers persisted config files as I said above? It all needs to be scrubbed out, and go from scratch |
@madmachinations Yes I have scrubbed everything and started fresh. It asked for the base URL the first time but still failed the same way. |
Do you have a pass key on your amazon account? |
@madmachinations no passkey just regular MFA via SMS and e-mail. Each login attempt is triggering the MFA code to be sent but the client never asks for it |
Are you sure you're running the latest server? |
yes and very latest client. Docker image says it is 2 hours old (2501.004) |
Hmmmm, I've just looked at amazon.com.au and compared it to the whole flow - nothing looks out of the ordinary to me. Everything matches up. The buttons, fields, everything are the same as they are for everything else. Can you tell me about where you are running the server exactly please? On what kind of hardware? What OS? |
HAOS 14.1 (2025.1.0) on x86 VM. Your plugin installed via HASS (removed old repo, added your new one). I am trying to find any trace of the old version but not having any luck. |
How technical are you? Like, how are you with python? |
@madmachinations I'm fairly technical but not particularly skilled in docker. I've had a poke around, I can see that is has created a new config.json with the baseURL, and there is a cookies.json with what looks to be valid data. |
OK so I have gotten somewhere. I removed MFA from my Amazon account and tried to login again. No good same issue. Turned MFA back on, now the client is asking for the OTP and it has let me in! |
Weird, but good to know! I wonder if you had multiple MFA set up on your Amazon account perhaps? Maybe the MFA form looks different in that case or asks some weird question the selenium implementation can't handle. |
Okay I have added notes about multiple MFAs to the new setup guide on the wiki, and I will close this issue as it's kinda vague in subject and a duplicate, and it's assumed to be working currently. Any other shit that hits the fan is new business. |
When authenticating with clients.py I get "Server is authenticated", but when I run the list command immediately after, I get "ERROR: not authenticated". HA integration is not working well due to missing authentication. What can I do?
I try it on amazon.de and Im not asked for OTP, which should be asked for.
The text was updated successfully, but these errors were encountered: