From c58a251dbd76dc9b23deb8dc521bac20e5676c4f Mon Sep 17 00:00:00 2001 From: Min RK Date: Mon, 1 Apr 2019 14:53:35 +0200 Subject: [PATCH] typo raising error on missing oauth state need to specify a status code --- jupyterhub/services/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyterhub/services/auth.py b/jupyterhub/services/auth.py index 733d4a72..c6d8b83c 100644 --- a/jupyterhub/services/auth.py +++ b/jupyterhub/services/auth.py @@ -960,7 +960,7 @@ class HubOAuthCallbackHandler(HubOAuthenticated, RequestHandler): # validate OAuth state arg_state = self.get_argument("state", None) if arg_state is None: - raise HTTPError("oauth state is missing. Try logging in again.") + raise HTTPError(500, "oauth state is missing. Try logging in again.") cookie_name = self.hub_auth.get_state_cookie_name(arg_state) cookie_state = self.get_secure_cookie(cookie_name) # clear cookie state now that we've consumed it