Skip to content
This repository has been archived by the owner on Nov 14, 2018. It is now read-only.

Juliabox url when not logged in #328

Open
mturok opened this issue Nov 10, 2015 · 2 comments
Open

Juliabox url when not logged in #328

mturok opened this issue Nov 10, 2015 · 2 comments

Comments

@mturok
Copy link

mturok commented Nov 10, 2015

Hi,

I was wondering if it were possible to have a juliabox url take me to the authentication page if I'm not currently logged in.

For example, if I haven't logged into juliabox yet, and I try to navigate to a notebook at a url like: https://juliabox.org/notebooks/MIC.ipynb, I get an error message that says "Signature mismatch". However, if I'm already logged in, I see a jupyter notebook.

I'm thinking that what would be nice is to first be taken to the authentication page, and then if I log in successfully, to navigate to the url.

Happy to make the changes....any pointers appreciated.

Michael

@mturok mturok changed the title Notebook link first takes me to authentication page Juliabox url when not logged in already not working Nov 10, 2015
@mturok mturok changed the title Juliabox url when not logged in already not working Juliabox url when not logged in Nov 10, 2015
@tanmaykm
Copy link
Member

Hi Michael,

router.lua currently checks for valid sessions before letting URLs through. See https://github.com/JuliaLang/JuliaBox/blob/58e9cd90c9fef4a2cb4dcc3d34cbca64642cbe35/webserver/scripts/router.lua#L262

Invalid sessions result in error (forbid_invalid_session method: https://github.com/JuliaLang/JuliaBox/blob/58e9cd90c9fef4a2cb4dcc3d34cbca64642cbe35/webserver/scripts/router.lua#L232). It can redirect to the authentication page instead.

The initial URL can be saved in a cookie, and acted upon after authentication.

@xiuliren
Copy link

xiuliren commented Mar 2, 2018

BTW, juliabox.org do not work now, the link should be juliabox.com

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants