Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyter_server_user_token-0.1.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

jupyter_server_user_token-0.1.0-py2.py3-none-any.whl (4.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file jupyter_server_user_token-0.1.0.tar.gz.

File metadata

File hashes

Hashes for jupyter_server_user_token-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1d4325fcfa61ccb4d1171321a8076a3ab7a157cc5cbf96a76aad608a0e812fa9
MD5 898fd549fdc779e71bb971779634467e
BLAKE2b-256 aa7ab17fa1e8872a610cf2544b6dfd2921d69db216ef5e310c8114372f2ea0a2

See more details on using hashes here.

File details

Details for the file jupyter_server_user_token-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for jupyter_server_user_token-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0ccfcb8b2a9bca77b806f66c2f15828e1464536ced5109b09fe71577b49c31cc
MD5 e1f57ff6937d19c72909dab854c7e967
BLAKE2b-256 3918b78901297239a7962ea2dfee69510b6c579d353b30fb8c726d0151c45b76

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page