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

Authentication failed #11

Open
mdlaat opened this issue Aug 15, 2023 · 4 comments
Open

Authentication failed #11

mdlaat opened this issue Aug 15, 2023 · 4 comments

Comments

@mdlaat
Copy link

mdlaat commented Aug 15, 2023

Thank you very much for this work!

I am having a hard time to get the authentication right.
I am using the same username (my mailadres) and password as I am using to log in to the ewelink app.
I am in the Netherlands, and have set the region to "eu"

When starting, I see an error in the docker log:
Authentication failed. The application will continue and respond with the error message, to make sure you are informed.

I am in doubt of the right region, so i also tried "nl". In that case I get a docker log error:
FetchError: request to https://nl-api.coolkit.cc:8080/api/user/login failed, reason: getaddrinfo ENOTFOUND nl-api.coolkit.cc

Which makes me think my eu region is correct.

Should I use the same credentials as using in the ewelink app?

Kind regards

@sharinganthief
Copy link

also getting this

@DoganM95
Copy link
Owner

DoganM95 commented Aug 28, 2023

Hi, thanks for contacting me on this.
was able to replicate it, will try to fix it soon.

your region "eu" should be fine. And yes, it needs the same username & password that you use in your ewelink app.
The authorization needs to be a bearer token, containing your hashed data as you probably know.

@DoganM95
Copy link
Owner

Just checked everything, seems like these guys switched to a new auth mechanism (OAuth). Will add that soon and update this project.
what you guys can do meanwhile is following these steps, to create an "ewelink developer account", which seems to be necessary from now on.

find the instructions here:
https://github.com/coolkit-carl/eWeLinkOAuthLoginDemo#readme

@mdlaat
Copy link
Author

mdlaat commented Feb 27, 2024

So I created an ewelink developer account and an app. Filled in redirecturl:
http://127.0.0.1:3000/redirectUrl
and got an appid and secret.
But it is still unclear to me where to fill this appid & secret.
Any help appreciated.

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

3 participants