-
Notifications
You must be signed in to change notification settings - Fork 461
Unable to login to server with 0.23.1 update #513
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
Comments
So another hint, it might be session or cookie related. |
@dakaraphi I really did some change in the cookieJar, and what do you mean the second URL? And do you have |
@dakaraphi Maybe the bug occurs that on the redirection the outgoing request headers don't contain the previously received cookies. |
So, I was incorrect about the login URL. I am getting a different response back from the server.
This is the response shown in the result with x-com-ibm-team-scenario: 127.0.0.1
X-XSS-Protection: 1; mode=block
Content-Type: text/html;charset=UTF-8
Content-Encoding: gzip
Connection: close
Server: Jetty(8.1.16.v20140903) This is the response shown in the result with Set-Cookie: JazzFormAuth=Form;Path=/jazz;Secure
Expires: Thu, 01 Jan 1970 00:00:00 GMT
X-com-ibm-team-repository-web-auth-msg: authrequired
X-XSS-Protection: 1; mode=block
Content-Type: text/html;charset=UTF-8
Content-Encoding: gzip
Connection: close
Server: Jetty(8.1.16.v20140903) |
@dakaraphi since multiple redirections happen in the full login flow, is this response you pasted the first response with 3XX and how did you get this response |
@dakaraphi I guess the root cause is that when I call the redirected URL, the request doesn't carry the cookies stored in cookieJar |
That response came from the response shown in VSCode window using the REST Client |
@dakaraphi I think I have fixed this issue, can you please try this version as before, |
@Huachao unfortunately it still does not work |
@dakaraphi could you please provide more details about your request, like if |
@dakaraphi could you please provide more details about your request, like if |
@dakaraphi Please help to verify this version too which removes all the cookies related work in since version 0.23.0 |
The version you posted still does not work. Could you point me to the REST client code I should try to debug? I will try to see if I can see the problem. |
@dakaraphi if still not working, I think it's maybe not related to cookie jar. Previously I think the most possible code piece exsits in vscode-restclient/src/utils/httpClient.ts Line 110 in 32899a0
Thanks for you to help me to investigate the root cause 😄 |
Just posting a status update: |
@dakaraphi thanks for the update, it's a little strange that the package I sent to you not working. If it really works, you can try the vsce package command, and try the version. |
So it seems that when I build the package, it works for me. However, the packages you sent me or the one on the marketplace does not work for me. |
@dakaraphi the marketplace version is not working as expected since I haven't published a new release. Can you try the package built from my machine today? |
@Huachao yes, that build does work! :-) |
@dakaraphi OK, I'd like to close the issue |
@dakaraphi you can try this in the latest verison 0.23.2. |
@Huachao it is working. Thanks! |
Steps to Reproduce:
I attempt to login to my server, but it continues to request authorization.
I reinstalled 0.23.0 and login is successful.
I'm not sure what change is causing an issue yet.
The text was updated successfully, but these errors were encountered: