GithubHelp home page GithubHelp logo

Can't figure out 2fa about eufy-security-ws HOT 7 CLOSED

bropat avatar bropat commented on May 27, 2024
Can't figure out 2fa

from eufy-security-ws.

Comments (7)

1DontEx1st avatar 1DontEx1st commented on May 27, 2024 1

In case someone else who doesn't know what they're doing comes behind me, I was able to use Postman to send the following message to my instance and get it going. Thanks @bropat !

{
"command": "driver.set_verify_code",
"verifyCode": "XXXXXX"
}

from eufy-security-ws.

bropat avatar bropat commented on May 27, 2024

@1DontEx1st
By making the call driver.set_verify_code with the additional parameter verifyCode, where you specify the received verification code, to complete the 2fa.

from eufy-security-ws.

1DontEx1st avatar 1DontEx1st commented on May 27, 2024

Is this something I could do with Postman? Not a developer but I'm trying to pretend...

from eufy-security-ws.

rollesky avatar rollesky commented on May 27, 2024

@1DontEx1st can you elaborate a bit more how you have managed that? I am running
newman run eufy.json
where eufy.jsanon is what you have written above with XXXXX replaced by my code but my container is still showing:
INFO Requested verification code for 2FA
What am I doing wrong?
Or is there maybe any manual how to manage 2FA for those running eufy-security-ws in docker?

from eufy-security-ws.

1DontEx1st avatar 1DontEx1st commented on May 27, 2024

I don't know what newman is, so not sure what you mean. Postman is an application that lets you send GET and POST codes to a web server. In this case the web server is the eufy-security-ws instance, and the code is that little bit of JSON above. Does that make sense?

from eufy-security-ws.

rollesky avatar rollesky commented on May 27, 2024

20220403_201758
I went to my sever and this is what I was trying to do (see attached picture). I replaced of course 0.0.0.0 with my server ip were container was up and waiting for 2FA code and 1234 with a code I got from eufy.
What am I doing wrong?

from eufy-security-ws.

YassineElbouchaibi avatar YassineElbouchaibi commented on May 27, 2024

It uses websockets. You can use something like websocat to send out commands to the server.

echo '{"messageId": "0001", "command": "driver.set_verify_code", "verifyCode": "XXXXXX"}' | websocat ws://127.0.0.1:3000

from eufy-security-ws.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.