fcoury / octopi

A Ruby interface to GitHub API v2
http://hasmany.info/2009/4/18/ruby-interface-to-github-api
MIT License
216 stars 47 forks source link

Automatically Parse ~/.gitconfig for Credentials #15

Closed runpaint closed 15 years ago

runpaint commented 15 years ago

If ~/.gitconfig contains a stanza like the following, and credentials aren't specified in a method call, they should be extracted automatically.

[github]
     user = kate
     token = 545a9a47c1b7bd99cd06c0f812fde717

An added benefit of this approach is that applications built upon Octopi don't have to think about credential management; if the user has set up Git correctly, they'll just work, otherwise a rebuke an be issued. ;-)

fcoury commented 15 years ago

Seamless authentication using .gitconfig. Closed by b425c53e7556387bf741aefa37e25ef829dccaf5.