-
Notifications
You must be signed in to change notification settings - Fork 22
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
codeserver 3.11.0 broken #26
Comments
Further to this I'm attempting to update our OnDemand Code Server app to use version 4.2.0, which has undergone a fairly substantial refactoring to bring it inline with some upstream VS Code changes. They've also changed some of the Cookie handling, as outlined in the following issue: coder/code-server#4691 (comment) I've not looked in detail but the following PR may be significant: |
I also just patched OnDemand with the PR below for an entirely separate reason. But it may catch relative URLs better. Another route would be to set the app up as |
The auth problem persists while trying the server version 4.7.0. Launching like code-server --auth="password" ... with the PASSWORD set brings us to the login screen with "Welcome to code-server and a password submit field. |
This problem can be solved by changing the method of mocking cookie.
|
The previous comment is correct in that it's necessary to change the hashing method for the cookie created in view.html.erb, but there's an alternative auth mechanism in view.html.erb. The auth mechanism that's conditionally used for code-server 4.8.3 works for >= 3.11 with the |
My solution was to use this form:
Works with code-server version 4.23.1 |
It appears that the problem described in in #2 (comment) is again occurring with bc_osc_codeserver 0.4.0 and code-server >= 3.11.0 (but 3.10.2 works OK)
Originally posted by @nathanweeks in #2 (comment)
The text was updated successfully, but these errors were encountered: