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
Authorization field seems not available #316
Comments
Have the same issues. But for me after the update, rest.nvim no longer stores the TOKEN from login, so I have to manually add it. And even if i manually add it, TOKEN from the current environment doesnt seem to work when its in the Authorization header. (But the url arguments from the env file work). |
Hi, this is related to this comment in #308. At the time of this writing, rest.nvim doesn't yet support |
@NTBBloodbath but i think the comment you tagged says its closed + its been pushed. However, and yes it might deserve its own issue i suppose - it does not seem to write into the .env file the way it used to following a successful login response. Like at all. The issue might be related to #308 though, as there was something wrong about loading env variables, perhaps its still got an issue finding the path to the env to write into it. (alternatively the syntax has changed, but im pretty sure im doing it the way im supposed to) |
Yes, that's because that issue was initially about another behavior. I asked to open a new issue dedicated to the authentication issues after it
Oh, I removed that because the previous implementation had some problems, for example:
In version 2.1 (which won't be far away) I'm going to reimplement it in the most intuitive, interactive and detailed way possible |
But does it mean in this current version, that it doesnt need to write the token into the env file itself, and when u run context.set_env("TOKEN","eywhatever") it keeps it in memory, something like that? Or does it mean context.set_env doesnt do anything at the moment. |
Is there any workaround if I need to make an call where auth basic is needed? Maybe I am missing something. But does this mean calls where Auth is needed is not supported in v2? I have been trying to figure out why my calls are not working in rest.nvim and doubt whether it is an user issue or not. |
If there are any updates on this do mention me so i can know. |
yeah hold on how how are auth headers not supported? I'm really excited to use It's especially confusing because there's an auth header in |
Tested it already doesn't work at this point i am intrigued to actually open it myself and see why lol |
Hello,
I tried a simple request, similar to the example on the repo, with a
Authorization: Bearer {{TOKEN}}
, but I'm not able to authenticate to the website.The token is generated after login using rest-nvim, which is succesfull, I get a working token in the response.
Even if I set the token in plain text in the Authorization field, I'm not able to authenticate.
If I put the {{TOKEN}} in the url, I can see it, so setting from login and getting the TOKEN from env is working.
Seen a similar issue in a chat here, but was unable to find it again.
Thx for your awesome work.
The text was updated successfully, but these errors were encountered: