Files
the-littlest-jupyterhub/docs/howto/auth/dummy.rst

52 lines
1.5 KiB
ReStructuredText
Raw Normal View History

2018-07-27 22:22:45 -07:00
.. _howto/auth/dummy:
=====================================================
Authenticate *any* user with a single shared password
=====================================================
The **Dummy Authenticator** lets *any* user log in with the given password.
This authenticator is **extremely insecure**, so do not use it if you can
avoid it.
Enabling the authenticator
==========================
2018-09-19 22:09:26 -06:00
1. Always use DummyAuthenticator with a password. You can communicate this
2018-07-27 22:22:45 -07:00
password to all your users via an out of band mechanism (like writing on
a whiteboard). Once you have selected a password, configure TLJH to use
the password by executing the following from an admin console.
2018-09-19 22:09:26 -06:00
.. code-block:: bash
sudo tljh-config set auth.DummyAuthenticator.password <password>
2018-07-27 22:22:45 -07:00
Remember to replace ``<password>`` with the password you choose.
2. Enable the authenticator and reload config to apply configuration:
2018-09-19 22:09:26 -06:00
.. code-block:: bash
sudo tljh-config set auth.type dummyauthenticator.DummyAuthenticator
.. code-block:: bash
2018-07-27 22:22:45 -07:00
2018-09-19 22:09:26 -06:00
sudo tljh-config reload
Users who are currently logged in will continue to be logged in. When they
2018-07-27 22:22:45 -07:00
log out and try to log back in, they will be asked to provide a username and
password.
Changing the password
=====================
The password used by DummyAuthenticator can be changed with the following
commands:
.. code-block:: bash
tljh-config set auth.DummyAuthenticator.password <new-password>
2018-09-19 22:09:26 -06:00
.. code-block:: bash
tljh-config reload