bgreenlee / sublime-github

Sublime Text 2/3 plugin that provides a number of useful commands for GitHub.
MIT License
456 stars 92 forks source link

Token creation not compatible with new 2FA feature #53

Closed apetresc closed 11 years ago

apetresc commented 11 years ago

If you have 2-factor authentication enabled, it's impossible (as far as I can tell) to generate an app token on the first command with sublime-github. I think you'll need to implement one of the solutions described here in order to make this work.

bgreenlee commented 11 years ago

Yes, looks like it is just needed to generate the access token. I'll try to get to that this week. Thanks for the heads-up.

In the meantime, I think you can generate one manually here: https://github.com/settings/applications, under Personal Access Tokens. You can then paste that token into Preferences -> Package Settings -> GitHub -> Settings - User:

{
    "accounts":
    {
        "GitHub":
        {
            "base_uri": "https://api.github.com",
            "github_token": "<token>"
        }
    }
}
bgreenlee commented 11 years ago

Ok, that wasn't hard. Give it a shot.