Skip to content
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

Install Integration: HA auth link loop #2527

Closed
jj-uk opened this issue Sep 15, 2024 · 7 comments
Closed

Install Integration: HA auth link loop #2527

jj-uk opened this issue Sep 15, 2024 · 7 comments

Comments

@jj-uk
Copy link

jj-uk commented Sep 15, 2024

IMPORTANT: Please search the issues, including closed issues, and the FAQ before opening a new issue. The template is mandatory; failure to use it will result in issue closure.

Describe the bug

When installing the alexa media player integration, the last step is to open amazon login page from the local HA instance.
After entering the amazon email address, the password page is show. After entering the password, the email address page is shown and the loop occurs forever.

The address is:
http://192.168.1.10:8123/auth/alexamedia/proxy?config_flow_id=__REMOVED_ID__&callback_url=http://192.168.1.10:8123/auth/alexamedia/callback?flow_id%3D__REMOVED_ID__

I've removed the ID as i'm not sure if it's safe to post here. Replaced with __REMOVED_ID__
To Reproduce

  1. Add integration -> Alexa media player
  2. enter:
    amazon,co.uk
    valid email
    valid amazon password
    Newly generated 2FA app key
    http://192.168.1.10:8123
    public url blank
    inc devices blank
    exc devices blank
    60
    1.5
    inc devices via echo unchecked
    advanced debuggin unchecked.
  3. Submit.
  4. Enter the generated OTP into amazon, tick the confirmation box in HA and continue.

At this point, the internal URL opens:
http://192.168.1.10:8123/auth/alexamedia/proxy?config_flow_id=__REMOVED_ID__&callback_url=http://192.168.1.10:8123/auth/alexamedia/callback?flow_id%3D__REMOVED_ID__

and the loop begins:
email address -> password -> email address -> etc..

Expected behavior

Successful integration install.

Screenshots

System details

  • Home Assistant version:
    Core 2024.9.1
    Supervisor 2024.09.1
    Operating System 13.1
    Frontend 20240906.0

  • alexa_media version (from const.py or HA startup log): alexa media player v4.12.12

  • alexapy version (from pip show alexapy in homeasssistant container or HA startup log):

  • Is Amazon 2FA/2SV enabled <!---We will not debug login issues if unanswered---> (y/n): y

  • Amazon Domain: amazon.co.uk

Debug Logs (alexa_media & alexapy)
Please provide logs.
As setup fails, there's no method to enable logging, that I can find?
Additional context

@bennydente
Copy link

Hi, same here on amazon.it. Bye.

@CookieRacer
Copy link

CookieRacer commented Sep 15, 2024

Hi, same here on amazon.de :-(

This workaround help me too :-)
#2514 (comment)

@Inferis1305
Copy link

there is a workaround ...

_" Through trial and error trying to figure out the flow sequence, I was able to trick it and get to the OTP window.
After you've cycled through name, password and back to name, select the option Create Account New to Amazon?
Fill in a first & last name (anything at all as not going to matter so "Q W" is quick and easy to type!)
Amazon will then inform you that an account with your email already exists.
At that point re-select "Sign in Already a customer?" and proceed with the email and password windows and then the OTP window should appear. By that point though, the integration generated OTP has likely expired but you can just enter your current app generated OTP code and it should work.
If it returns to the integration add window and it just sits and spins and never progresses, that likely means the proxy listening session has expired and you'll have to repeat the process."

Enjoy

@CookieRacer
Copy link

there is a workaround ...

_" Through trial and error trying to figure out the flow sequence, I was able to trick it and get to the OTP window. After you've cycled through name, password and back to name, select the option Create Account New to Amazon? Fill in a first & last name (anything at all as not going to matter so "Q W" is quick and easy to type!) Amazon will then inform you that an account with your email already exists. At that point re-select "Sign in Already a customer?" and proceed with the email and password windows and then the OTP window should appear. By that point though, the integration generated OTP has likely expired but you can just enter your current app generated OTP code and it should work. If it returns to the integration add window and it just sits and spins and never progresses, that likely means the proxy listening session has expired and you'll have to repeat the process."

Enjoy

Yes thank you the workaround help me. Also here #2514 (comment)

@jj-uk
Copy link
Author

jj-uk commented Sep 15, 2024

Ok, this issue seems to be a duplicate of #2514.

@bennydente
Copy link

thanks, workaround help me too.

@danielbrunt57
Copy link
Collaborator

Duplicate issue. See #2514 ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants