From 018db6c8ce1e954f26ed4aa7703a0802e41f68df Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Tue, 7 Mar 2017 11:02:01 -0800 Subject: [PATCH] Tell user how to avoid token authentication. Most user don't care how to get the token each time (if they see the message). They want to avoid using a token. Make it clearer that Password should be configured. Be more tricky, say that password not configured **yet**, to make the user think they __have to__. The text is not technically correct as as far as I remember you can have PW and Token at the same time. But I'm going to say that in 99% of case where users read that, the password is unset. --- notebook/templates/login.html | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/notebook/templates/login.html b/notebook/templates/login.html index 61aafaf17..54af057a6 100644 --- a/notebook/templates/login.html +++ b/notebook/templates/login.html @@ -45,16 +45,20 @@ {% endif %} {% if token_available %} {% block token_message %} -
-

- Token authentication is enabled. - - You need to open the notebook server with its first-time login token in the URL, - or enable a password in order to gain access. - The command: +

+

+ No password configured yet: Token authentication is enabled. +

+

+ No password have been configured yet, you need to open the notebook + server with its first-time login token in the URL. Theis requirement + will be lifted once you enable a password in order to gain + access.

-
jupyter notebook list
+

+ The command: +

jupyter notebook list
will show you the URLs of running servers with their tokens, which you can copy and paste into your browser. For example:

@@ -62,11 +66,23 @@ http://localhost:8888/?token=c8de56fa... :: /Users/you/notebooks

- Or you can paste just the token value into the password field on this page. + Or you can paste just the token value into the password field on this + page.

Cookies are required for authenticated access to notebooks.

+

+ + Authentication using tokens is enabled for your security as no password + has been set yet. + + See the documentation on how to enable password + + and lift random token authentication. + +

{% endblock token_message %} {% endif %}