Giter Club home page Giter Club logo

Comments (19)

donavanbecker avatar donavanbecker commented on May 24, 2024 5

@dgreif 2fa works awesome!!! Thanks so much for implementing this! I wasn’t expecting it this soon. You are quick.

Sent with GitHawk

from ring.

dgreif avatar dgreif commented on May 24, 2024 4

@adavison007 @d0n4v4nb3ck3r I have added 2fa support for the api and the homebridge plugin. See https://github.com/dgreif/ring/tree/master/homebridge#2-factor-authentication-2fa for setup instructions. I plan to add another method to get a refreshToken at some point, but it should be functional the way I have it set up now. Let me know how it works for you!

from ring.

dgreif avatar dgreif commented on May 24, 2024 2

Sorry for the bad user experience on this. I got the main functionality working, but it could definitely be easier to get the refresh token. I’m planning to publish a cli tool to make it simple in the next few days. You would have to ssh in and run homebridge manually right now. The problem is that the prompt for the 2fa code can easily get lost in the rest of the homebridge output.

from ring.

BradMcGonigle avatar BradMcGonigle commented on May 24, 2024 2

@dgreif worked great for me. Awesome work!

from ring.

adavison007 avatar adavison007 commented on May 24, 2024 2

@dgreif BOOM! You the man, works a dream (used CLI in hoobs web UI) @dgreif Just need to work out how to do the live video stream now :)

from ring.

dgreif avatar dgreif commented on May 24, 2024 1

See #26 for previous discussion. It might be reasonably doable depending on how refresh tokens work. I'll look into it when I have time, but can't make any promises on a timeline. I think 2FA is great and would like to get it implemented at some point.

from ring.

BradMcGonigle avatar BradMcGonigle commented on May 24, 2024 1

Sorry for the bad user experience on this. I got the main functionality working, but it could definitely be easier to get the refresh token. I’m planning to publish a cli tool to make it simple in the next few days. You would have to ssh in and run homebridge manually right now. The problem is that the prompt for the 2fa code can easily get lost in the rest of the homebridge output.

@dgreif please....thank you so much for your work on everything here. The community to is lucky to have fantastic contributors like yourself. I'm always impressed with the speed and quality of the updates/releases you've been putting out lately.

If you need help testing the cli tool, I'd be happy to help.

from ring.

dgreif avatar dgreif commented on May 24, 2024 1

@adavison007 sorry for the lack of info. I'm almost done with the CLI, just working on how exactly I want to deploy it for use. I should have it released in the next couple days

from ring.

dgreif avatar dgreif commented on May 24, 2024 1

@adavison007 sorry for the long wait, but the ring-auth-cli has landed in v4.2.0. See https://github.com/dgreif/ring/wiki/Two-Factor-Auth for details on how to use it. Let me know how it works for you 😄

from ring.

adavison007 avatar adavison007 commented on May 24, 2024 1

@adavison007 sorry for the long wait, but the ring-auth-cli has landed in v4.2.0. See https://github.com/dgreif/ring/wiki/Two-Factor-Auth for details on how to use it. Let me know how it works for you 😄

@dgreif Awesome! I will try tonight when home, thanks in advance.

from ring.

adavison007 avatar adavison007 commented on May 24, 2024

Thank you for this, I’m running hoobs, so I guess I should see the request if I open the terminal? Or in logs?

from ring.

BradMcGonigle avatar BradMcGonigle commented on May 24, 2024

@adavison007 looking at the Hoobs logs won't work because your need to enter the two factor code that Ring sends via SMS when homebridge starts up to get the refreshToken.

I'm only vaguely familiar with hoobs but it probably starts homebridge on boot so there is not method for entering the two factor SMS code that Ring sends. You'd have to start homebridge manually in console to get the prompt to enter it I believe.

from ring.

adavison007 avatar adavison007 commented on May 24, 2024

@adavison007 looking at the Hoobs logs won't work because your need to enter the two factor code that Ring sends via SMS when homebridge starts up to get the refreshToken.

I'm only vaguely familiar with hoobs but it probably starts homebridge on boot so there is not method for entering the two factor SMS code that Ring sends. You'd have to start homebridge manually in console to get the prompt to enter it I believe.

Bugger!!! Just tried this and nothing appears in logs or terminal in hoobs.... everything from ring stopped working, so had to turn off 2FA again... let me know if you find an alternative option? I've attached a screen shot of the hoobs start up config?
image

from ring.

adavison007 avatar adavison007 commented on May 24, 2024

@BradMcGonigle I can separately ssh into hoobs, if that helps?

from ring.

adavison007 avatar adavison007 commented on May 24, 2024

Sorry for the bad user experience on this. I got the main functionality working, but it could definitely be easier to get the refresh token. I’m planning to publish a cli tool to make it simple in the next few days. You would have to ssh in and run homebridge manually right now. The problem is that the prompt for the 2fa code can easily get lost in the rest of the homebridge output.

@BradMcGonigle Cool, let me know when you want me to test the CLI option, really appreciate the support on this. Then we need live stream for the cameras 🥇

from ring.

adavison007 avatar adavison007 commented on May 24, 2024

@dgreif Any news on the CLI command for 2FA? Sorry to chase, keen to use, massive thanks in advance.

from ring.

adavison007 avatar adavison007 commented on May 24, 2024

@adavison007 sorry for the lack of info. I'm almost done with the CLI, just working on how exactly I want to deploy it for use. I should have it released in the next couple days

@dgreif Many thanks, let me know and I'll test straight away.

from ring.

donavanbecker avatar donavanbecker commented on May 24, 2024

@dgreif works awesome!!

from ring.

dgreif avatar dgreif commented on May 24, 2024

Thanks @adavison007 and everyone else for your patience and testing on this!

from ring.

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.