mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 23:13:00 +00:00
Incorporate review feedback
This commit is contained in:
@@ -87,12 +87,13 @@ Proxy authentication token
|
|||||||
|
|
||||||
The Hub authenticates its requests to the Proxy using a secret token that
|
The Hub authenticates its requests to the Proxy using a secret token that
|
||||||
the Hub and Proxy agree upon. The value of this token should be a random
|
the Hub and Proxy agree upon. The value of this token should be a random
|
||||||
string (for example, generated by ``openssl rand -hex 32``).
|
string (for example, generated by ``openssl rand -hex 32``). You can store
|
||||||
|
it in the configuration file or an environment variable
|
||||||
|
|
||||||
Generating and storing token in the configuration file
|
Generating and storing token in the configuration file
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
Or you can set the value in the configuration file, ``jupyterhub_config.py``:
|
You can set the value in the configuration file, ``jupyterhub_config.py``:
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
@@ -191,12 +192,16 @@ Cookies used by JupyterHub authentication
|
|||||||
|
|
||||||
The following cookies are used by the Hub for handling user authentication.
|
The following cookies are used by the Hub for handling user authentication.
|
||||||
|
|
||||||
|
This section was created based on this post_ from Discourse.
|
||||||
|
|
||||||
|
.. _post: https://discourse.jupyter.org/t/how-to-force-re-login-for-users/1998/6
|
||||||
|
|
||||||
jupyterhub-hub-login
|
jupyterhub-hub-login
|
||||||
~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
This is the login token used when visiting Hub-served pages encrypted such
|
This is the login token used when visiting Hub-served pages that are
|
||||||
as the main home, the spawn form, etc. If this cookie is set, then the
|
protected by authentication such as the main home, the spawn form, etc.
|
||||||
user is logged in.
|
If this cookie is set, then the user is logged in.
|
||||||
|
|
||||||
Resetting the Hub cookie secret effectively revokes this cookie.
|
Resetting the Hub cookie secret effectively revokes this cookie.
|
||||||
|
|
||||||
@@ -205,8 +210,8 @@ This cookie is restricted to the path ``/hub/``.
|
|||||||
jupyterhub-user-<username>
|
jupyterhub-user-<username>
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
This is the cookie used for authenticating with a single-user server
|
This is the cookie used for authenticating with a single-user server.
|
||||||
encrypted. It is set by the single-user server after OAuth with the Hub.
|
It is set by the single-user server after OAuth with the Hub.
|
||||||
|
|
||||||
Effectively the same as ``jupyterhub-hub-login``, but for the
|
Effectively the same as ``jupyterhub-hub-login``, but for the
|
||||||
single-user server instead of the Hub. It contains an OAuth access token,
|
single-user server instead of the Hub. It contains an OAuth access token,
|
||||||
|
Reference in New Issue
Block a user