Skip to content
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

support for URL filename and URL parameters #226

Closed
wants to merge 3 commits into from
Closed

support for URL filename and URL parameters #226

wants to merge 3 commits into from

Conversation

jhgoebbert
Copy link

@jhgoebbert jhgoebbert commented Nov 18, 2020

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

@welcome
Copy link

welcome bot commented Nov 18, 2020

Thanks for submitting your first pull request! You are awesome! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please make sure you followed the pull request template, as this will help us review your contribution more quickly.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also a intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@jhgoebbert jhgoebbert changed the title support to URL filename and URL parameters support for URL filename and URL parameters Nov 19, 2020
@jhgoebbert
Copy link
Author

With much success we are using jupyter-xprahtml5-proxy (enabled by this pull request) since a few weeks in production.
It would be fantastic if this pull request could make it into jupyter-server-proxy, soon.

@olifre
Copy link

olifre commented Mar 15, 2021

Same here, we are also using this, right now in a short pilot phase, but it works very well for us and we plan to take it into production soon. It would be very nice to see this PR reviewed / accepted.

@jhgoebbert
Copy link
Author

jhgoebbert commented Aug 17, 2021

Hello everyone, Hello @ryanlovett , Hello @manics ,
I would like to see this PR merged. Does anyone has time to review it and give me suggestions how to improve it so it can get merged?

@jhgoebbert
Copy link
Author

A similar solution was now merged with path_info: #279

@jhgoebbert jhgoebbert closed this Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants