kinncj / forker

A GitHub forker tool
GNU General Public License v2.0
2 stars 2 forks source link

Create an AuthenticationService #5

Open kinncj opened 9 years ago

kinncj commented 9 years ago

To authenticate using HTTP login or SSH key

henriquemoody commented 9 years ago

Get an OAuth token is a pretty easy way too, then we can store this into some file, like ~/.forker.

kinncj commented 9 years ago

But to get an OAuth token, the user needs to register an application, which is not pretty handy for this app purpose.

But definitely we can add the support!

malukenho commented 9 years ago

@kinncj @henriquemoody Saving a password for git repo https url is possible with a ~/.netrc (Unix) or %HOME%/_netrc on Windows.

But: that file would store your password in plain text.

henriquemoody commented 9 years ago

+1 for keep it as it is. +1 for to implement OAuth token (even if you have to register an application - it can be done only using the rest API) +1 for to implement SSH authentication -1 for to store passwords in any file

henriquemoody commented 9 years ago

Maybe we should use php-github-api.

kinncj commented 9 years ago

ping @henriquemoody https://github.com/kinncj/forker/blob/develop/composer.json#L6

henriquemoody commented 9 years ago

shame on me :dizzy_face:

kinncj commented 9 years ago

;-p we just need to use it properly (regarding to SSH or HTTP) :-)