support for URL filename and URL parameters #226
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello everyone,
jupyter-xprahtml5-proxy adds support for Xpra (remote desktop) to Jupyter through the
jupyter-server-proxy
extension.The Xpra HTML5 client can be configured through URL parameters. Expecially the username, password and encryption key is here of high importance to ensure that any user on a multiuser compute node can only connect to its own Xpra server. e.g.
http://localhost:10000/index.html?username=test&password=123456
One might think, that this can be done through "mappath", but the Xpra-HTML5 client extracts the URL paramters from the URL through JavaScript in the browser. Therefor it requires that these URL parameters must not only be known on the server/python-side, but also on the client/JavaScript-side to be added to the URL of the launcher icon (issue #222).
This is not supported yet by
jupyter-server-proxy
and added by this pull request.The optional variable added to launcher_entry is called "urlfile".
How this can be used is shown in the development branch of jupyter-xprahtml5-proxy.
It now supports password+encryption, which was not possible before:
https://github.com/FZJ-JSC/jupyter-xprahtml5-proxy/blob/v0.3.0_devel/jupyter_xprahtml5_proxy/__init__.py
Let me know, what you think.
I think it is important and hope to see this in jupyter-server-proxy soon.
Best,
Jens Henrik