Git Product home page Git Product logo

Comments (8)

pkpio avatar pkpio commented on July 18, 2024

@kquinsland , Thanks for the workaround. This is going to be very handy for server deployments.

from fitbit-googlefit.

kquinsland avatar kquinsland commented on July 18, 2024

@praveendath92 Yep, that was the intention.

I'm documenting the whole process of getting this set up / deployed in AWS on a headless box.

I opened this issue just to document how i got around it, but it very much should get turned into a command line flag / other config option to set up the auth scripts to work in a headless environment.

from fitbit-googlefit.

pkpio avatar pkpio commented on July 18, 2024

@kquinsland , Thanks for the info. I too think it's a good idea to turn it into a command line flag.

from fitbit-googlefit.

Adirael avatar Adirael commented on July 18, 2024

I was halfway to implementing this (got the Fitbit auth working, and was about to start refactoring to be able to the Google part) and I though of a simpler solution:

Open an SSH tunnel to the server and then run the auth_fitbit.py script, commenting thewebbrowser.open command and printing the URL.

Once authenticated the redirection will go through the tunnel to the server, everything works perfectly this way.

It may be a good thing to add a --headless flag or something of the like to display the URL instead of opening them, thus making this easier.

The command to open an SSH tunnel redirecting local 8080 to remote 8080 ports:

ssh -L 8080:127.0.0.1:8080 <server-name>

from fitbit-googlefit.

kquinsland avatar kquinsland commented on July 18, 2024

from fitbit-googlefit.

pkpio avatar pkpio commented on July 18, 2024

@kquinsland Thanks for elaborating the process. I will integrate this into the authentication scripts, hopefully sometime next week. If you like to do this, I would be glad to merge your pull request 😄

from fitbit-googlefit.

kquinsland avatar kquinsland commented on July 18, 2024

from fitbit-googlefit.

pkpio avatar pkpio commented on July 18, 2024

@kquinsland @Adirael and @bgtron Thanks for all your feedback. Headless authetication is now added.

from fitbit-googlefit.

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.