Jupyter Server Extension to inject the User Token into the Jupyter Server environment
Project description
jupyter-server-user-token
A simple Jupyter Server extension that adds the server's User Token (if it exists) into the process's environment as JUPYTER_SERVER_USER_TOKEN
.
Why?
Some frontend extensions and visualisation libraries use iframes to render documents served out on Jupyter Server Proxy.
These iframes might have an href target like: /proxy/index.html?some=query-params
and work happily when used in notebooks and lab.
In the context of myst
the same visualisations run into issues when connecting to remote Jupyter servers running on different origins, as the cookie-based auth in play in a same-origin lab front ends, will fail on a typlical myst website.
By exposing the user token, end user code can do something about this and supply the user token string to the library / extension code that needs it.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file jupyter_server_user_token-0.1.0.tar.gz
.
File metadata
- Download URL: jupyter_server_user_token-0.1.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d4325fcfa61ccb4d1171321a8076a3ab7a157cc5cbf96a76aad608a0e812fa9 |
|
MD5 | 898fd549fdc779e71bb971779634467e |
|
BLAKE2b-256 | aa7ab17fa1e8872a610cf2544b6dfd2921d69db216ef5e310c8114372f2ea0a2 |
File details
Details for the file jupyter_server_user_token-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: jupyter_server_user_token-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ccfcb8b2a9bca77b806f66c2f15828e1464536ced5109b09fe71577b49c31cc |
|
MD5 | e1f57ff6937d19c72909dab854c7e967 |
|
BLAKE2b-256 | 3918b78901297239a7962ea2dfee69510b6c579d353b30fb8c726d0151c45b76 |