Giter VIP home page Giter VIP logo

Comments (5)

wilmoore avatar wilmoore commented on July 17, 2024

If the volo config file is to be saved in the repo, that may not be a great idea to save the token there by default. Perhaps default to a file under $HOME/.

BTW, you can skip the web app step and just using the command-line (you'll need to prompt the user for their user/pass if you don't find GITHUB_USER/GITHUB_PASS environment variables).

curl -i -u "user:pass" https://api.github.com/authorizations -d '{"scopes": ["public_repo","user","repo"],"note":"volo"}'

Let the user know you aren't saving the username and password anywhere, and that should be fine.

from volo.

jrburke avatar jrburke commented on July 17, 2024

@wilmoore I ended up integrating a github auth flow that does not require spinning up a web server, and does what you suggested for contacting the server. The github/auth module retrieves the token, and that token is stored in the home directory. The user also has the option to not save the token too.

So with that in place, then supporting access to private repos should be doable. I just need to test for getting an auth failure and try with getting the token. I will put this in the 0.2.4 bucket for consideration.

from volo.

wilmoore avatar wilmoore commented on July 17, 2024

@jrburke That was a super-fast turn-around. Awesome.

from volo.

jrburke avatar jrburke commented on July 17, 2024

:) It has actually been in since about 0.2.0, just have not bubbled it up for this use. Mainly used by volo-ghdeploy right now.

from volo.

wilmoore avatar wilmoore commented on July 17, 2024

:)

from volo.

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.