bgreenlee / sublime-github

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

Browser prompts to 'confirm' even when trying to use token auth #86

Closed midwire closed 8 years ago

midwire commented 8 years ago

I've tried to search through both open and closed issues but it doesn't seem anyone else is having this problem.

I am using ST3 and the following GitHub.sublime-settings:

{
    "accounts":
    {
        "Midwire":
        {
            "base_uri": "https://api.github.com",
            "github_token": "<REDACTED FOR SECURITY>"
        }
    },
    "active_account": "Midwire",
    "always_highlight_current_line": true,
    "debug": true,
    "gist_list_format": "%(filename)s: %(description)s",
    "gist_list_monospace": true
}

Whenever I try to do a Github: Blame Firefox shows me this prompt:

mozilla_firefox

The docs say that the plugin doesn't store the username or password so it must be finding my username somewhere else?

Thanks for any help, and thanks for this great plugin!

PS: It generates URLS that look like this:

https://midwire@github.com/RallyhoodDev/Rallyhood-Rails/blame/develop/app/models/settings.rb#L2
midwire commented 8 years ago

I think I found the problem. My remote origin is set to use https://midwire@github.com/. Sorry for the bother.