Do you want to change the login URL for a reason? Why not use (r'/login', RemoteUserLoginHandler)
? You can override the login url by overriding the login_url(base_url)
method, but I suspect putting your login handler on the default URL is the right thing to do, instead.
-MinRK
I tried returning `(r'/login', RemoteUserHandler)` from my authenticator's `get_handlers()` method (currently is "/remote_user_login" [1]), but when I press the "logout" button, I get redirected to the original login form (not automatically logged in as I would expect). I wasn't sure you could return `r'/login'` and expect it to be overridden.
Thanks,
Carl
[1] https://github.com/cwaldbieser/jhub_remote_user_authenticator/blob/master/remote_user/remote_user_auth.py
On Wednesday, November 4, 2015 at 5:02:04 AM UTC-5, Min RK wrote:Do you want to change the login URL for a reason? Why not use
(r'/login', RemoteUserLoginHandler)
? You can override the login url by overriding thelogin_url(base_url)
method, but I suspect putting your login handler on the default URL is the right thing to do, instead.-MinRK
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/e76a5902-e493-46da-9f3a-3f6f06ce3eef%40googlegroups.com.
# Only logout is a default handler.
default_handlers = [
(r"/login", LoginHandler),
(r"/logout", LogoutHandler),
]
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/e4103d7d-d83c-4d7b-a09f-9564797b8a97%40googlegroups.com.