New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No valid auth strategy detected #188
Comments
I've been able to get a green check on |
Do you happen to be on Arch? Or rather, what's your distro? The way that I'm storing the access tokens in Rust uses some system libraries that may not be available by default (so I may have to pursue a different strategy, or find some other way to store if the configuration doesn't work) |
Hi, thanks for the reply. One thing I noticed is that I don't get an Let me know if I can help you to investigate it more. |
Ah, I figure out something that was definitely a problem on my side. I was not passing the error from attempting to save the credentials to the user -- can you try doing it again? Hopefully this time it surfaces an error to you (or works haha) |
Hi, I updated the plugin to the latest version which includes this commit, but nothing seems to have changed.
message in my browser tab and inspecting the Access tokens section of my sourcegraph.com profile, I can find the newly created token. |
I can confirm same error on MacOS, I cannot authenticate using |
I also have this issue on WSL, I cannot authenticate using SourcegraphLogin nor token saved in env variable. |
Same error on WSL, oof. |
I have the same issue on Termux, to solve It I've set the |
Hi,
first of all thank you very much for developing this plugin!
Sourcegraph is a game changer. I love it.
I get the
No valid auth strategy detected
error upon running:checkhealth sg
, despite running (apparently fine) theSourcegraphLogin
command.This is the full output of the
:checkhealth sg
command:When I run
:SourcegraphLogin
, I confirm the endpoint url ashttps://sourcegraph.com/
, upon hitting<CR>
, a browser TAB opens with the following url:https://sourcegraph.com/users/h0pes/settings/tokens/new/callback?requestFrom=NEOVIM-52068
.I click
Confirm
on the form button. A new tab is opened with this url:http://localhost:52068/api/sourcegraph/token?token=sgp_[redacted]_[redacted]
and the message:Credentials have been saved to Neovim. Restart Neovim now.
.If I restart Neovim, I experience the same behavior as not logged in per
checkhealth
.I'm authenticated on my browser session to
https://sourcegraph.com
, if that matters.If I run
:SourcegraphLogin!
and I paste the access token created in nvim command bar, after having confirmed the endpoint, no errors or messages appear.I can see the personal access token under just created under the Settings page in Sourcegraph.
This is my config:
I attach some screens.
The text was updated successfully, but these errors were encountered: