[Bug]: 🐛 Login succeeds but fails at Amazon redirect (/ap/maplanding)
bugamazonissueauthcaptureproxyunsupported
### Describe the bug
Authentication completes successfully in Alexa Media Player, including Amazon login and 2FA. However, the integration setup fails at the final redirect step.
Instead of returning to Home Assistant after authentication, Amazon redirects to:
https://www.amazon.com/ap/maplanding
The integration never completes setup and no devices/entities are created.
This occurs consistently after successful login and appears to happen at the final callback/redirect stage.
### To Reproduce
1. Add Alexa Media Player integration in Home Assistant
2. Start Amazon login flow
3. Enter valid Amazon credentials
4. Complete 2-factor authentication successfully
5. Amazon confirms authentication
6. Redirect occurs to https://www.amazon.com/ap/maplanding
7. Integration setup does not complete
### Expected behavior
After successful Amazon authentication:
- User is redirected back to Home Assistant callback URL
- Alexa Media Player completes setup
- Devices and entities are created successfully
### Screenshots
_No response_
### Home Assistant Version
Installation method: Unsupported Third Party Container | Core: 2026.6.2 | Frontend: 20260527.5
### Alexa Media Player Version
v5.15.4 (latest available in HACS). Setup fails during Amazon authentication before completion.
### Alexa Media Player API library Version
Unable to determine (Alexa Media Player setup does not complete due to Amazon authentication redirect failure to /ap/maplanding)
### Have you entered a 52-character key for Amazon 2SV via Authenticator App login?
Yes
### Is the HA core integration Alexa Devices installed?
No
### Amazon Domain
amazon.com (US)
### Amazon Domain (if Other)
_No response_
### Debug Logs (alexa_media & alexapy)
```text
No full debug logs available yet. Integration fails during Amazon authentication redirect (/ap/maplanding) before successful completion. Can provide debug logs if needed after enabling logging.
Can enable debug logging for alexa_media and alexapy and reproduce if required.
```
### Additional context
This issue occurs consistently only at the final stage of authentication.
Amazon login completes successfully:
Username/password accepted ✔
2-factor authentication completes successfully ✔
Amazon confirms authentication ✔
However, instead of returning to Home Assistant, the browser is redirected to:
https://www.amazon.com/ap/maplanding
At this point, Alexa Media Player setup does not complete and no entities are created.
This behavior is fully reproducible and occurs after successful authentication, suggesting the failure happens during the final redirect/callback step rather than during login or 2FA.
Additional discussion and details can be found here:
https://www.reddit.com/r/homeassistant/comments/1u2m8vp/alexa_media_player_fails_after_amazon_login/
关闭于 2026-06-12 3 条评论