-
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
Fix authentication issues with code-server #2
Conversation
…absolute path, use code-server 3.2.0
When
When Relevant Files:
Problem: Cause: Potential Solutions:
|
* Use Stimulus.js to solve JS scoping problems when sessions are active * Use Cookies.js for backwards compatability with older browsers
I need to find a solution to load these external scripts from inside the project root instead of relying on a CDN to host these files. bc_osc_codeserver/view.html.erb Lines 12 to 25 in 4e7ac4b
This isn't possible currently, ideally it would be nice to have a /static folder in the root of interactive applications that is autoloaded and exposed at a URL like /pun/sys/dashboard/batch_connect/dev/bc_osc_codeserver/static for situations like these.
|
Just used the changes to |
c4cd9af
to
7e01f8c
Compare
* Add newlines to files
7e01f8c
to
c3a0b9f
Compare
* Set button type to submit
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) |
What version of OnDemand are you on? OSC/ondemand#521 in OnDemand part of this. |
oh, it was fixed in 2.0 by the way. So 1.8 may be buggy here. |
OOD v2.0.12. Given its release date (2021-07-01), it seems that should have the aforementioned commits? This issue was previously noticed by another user & mentioned in the Discourse forum: https://discourse.osc.edu/t/vscode-code-server/882/14 |
May i know if there are updates to this issue? |
Yes, it looks like this was fixed in 2.0.6 and beyond.
We have no updates as we're using version |
It would be helpful to be able to upgrade at some point. Aside from missing features present in newer VS Code releases, VS Code 1.56.1 (provided by Code Server 3.10.2) isn't compatible with newer versions of some important extensions (e.g., the ms-python.python extension is stuck at v2021.5.926500501). Would it be worth submitting a new issue to this repo to track the issue? |
I opened #26 |
Upgrade
code-server
to versionv3.4.1
(https://github.com/cdr/code-server/releases/tag/v3.4.1)code-server
bc_js_filepicker
to0.4.3
(https://github.com/OSC/bc_js_filepicker/releases/tag/0.4.3)Known bugs:
code-server
sessions running at once may cause the browser to not set cookies properly, refreshing theInteractive Sessions
is the solution for now.Todo:
Further improvement ideas for future releases:
code-server
binary automatically, create symlink automatically.