Auth via ~/.gist-vim not working
mklopets opened this issue ยท 9 comments
I'd been successfully using this for years, but some unknown time ago, the plugin's auth stopped working for me (possibly after a fresh install).
- if I create a
~/.gist-vimfile containingtoken XXXXX, I getPost failed:(with no error message after the colon) - if I do
let g:gist_token = "XXXXX"(XXXXX being identical), everything does work as expected
The password flow doesn't trigger for me at all, even after reinstalling and deleting ~/.gist-vim
~/.gist-vim file has all the permissions I could give it. On macOS Big Sur.
I have the same issue, maybe is because Github change the token format? ghp_xxx. But the same, with let works fine, but for now all time you need set it at the start vim session. The config file don't work
After removing ~/.gist-vim file trying to post a gist brings a prompt to enter my password:
Gist.vim requires authorization to use the GitHub API. These settings are stored in "~/.gist-vim". If you want to revoke, do "rm ~/.gist-vim".
GitHub Password for installero:
After entering my password I got Not Found message.
After removing
~/.gist-vimfile trying to post a gist brings a prompt to enter my password:Gist.vim requires authorization to use the GitHub API. These settings are stored in "~/.gist-vim". If you want to revoke, do "rm ~/.gist-vim". GitHub Password for installero:After entering my password I got
Not Foundmessage.
Same think here.
I've solved by this:
- go to
Settings/Developer settings/Personal access tokensin your github profile and create one with onlygistsaccess - create
~/.gist-vim - paste into created file
token <my newly created token>
And auth onGistcommands just works.
I've solved by this:
- go to
Settings/Developer settings/Personal access tokensin your github profile and create one with onlygistsaccess- create
~/.gist-vim- paste into created file
token <my newly created token>
And auth onGistcommands just works.
This gives me a Post failed: error
me too. I have Bad credentials error. The only way for me it is enter to vim, and then enter:
:let g:gist_token = 'ghp_xxxDSDJSLDKSLClsldadlasdajk'it should works with just put ~/.gist-vim. If you still have an issue, please generate new token again.
But it is a new token, Github forced me to renew it. On other hand the token is valid, because Gist works fine but only when I put it in execution, when I put it in the hidden file it doesn't works. When I remove the hidden file, Gist doesn't start the authentication flow.
Keyword token leading a line is missing?