How to externally login into jupyter?

30 views
Skip to first unread message

Robson Pires

unread,
Oct 18, 2017, 6:26:40 AM10/18/17
to Project Jupyter
Hi,

I have a java application which has a web view, I am loading jupyter page inside of this view. I would like to know if there is a way to login everytime I load inside of my application, that way the user does not need to log in and go directly to the homepage. Is that any API or idea to achieve that?

Thanks
Message has been deleted

Thomas Kluyver

unread,
Oct 18, 2017, 9:04:17 AM10/18/17
to Project Jupyter
If the server is running locally, you can get a token for it (run 'jupyter notebook --list json' to get info about running servers). Pass that when loading the web view (as described at http://jupyter-notebook.readthedocs.io/en/latest/security.html ), and it should log the user in automatically.

Thomas

On 18 October 2017 at 12:39, Robson Pires <orobso...@gmail.com> wrote:
What I meant is not log in via the login page.

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/3724dac9-0284-4ec1-bb88-f7ec6bb1848d%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Robson Pires

unread,
Oct 19, 2017, 4:07:24 AM10/19/17
to Project Jupyter
Hi, 

The negative point using tolken is that the url can just copied and used outside of the system, and I dont want that. The user should be able to only automatically login inside of the webview in my application.


On Wednesday, 18 October 2017 15:04:17 UTC+2, takowl wrote:
If the server is running locally, you can get a token for it (run 'jupyter notebook --list json' to get info about running servers). Pass that when loading the web view (as described at http://jupyter-notebook.readthedocs.io/en/latest/security.html ), and it should log the user in automatically.

Thomas
On 18 October 2017 at 12:39, Robson Pires <orobso...@gmail.com> wrote:
What I meant is not log in via the login page.

On Wednesday, 18 October 2017 12:26:40 UTC+2, Robson Pires wrote:
Hi,

I have a java application which has a web view, I am loading jupyter page inside of this view. I would like to know if there is a way to login everytime I load inside of my application, that way the user does not need to log in and go directly to the homepage. Is that any API or idea to achieve that?

Thanks

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.

Thomas Kluyver

unread,
Oct 19, 2017, 4:33:21 AM10/19/17
to Project Jupyter
I don't think it's worth trying to protect the user from themselves too much. If they can access the notebook server through your application, I think there's always going to be some way for them to access it outside your application as well.

To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages