mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 07:23:00 +00:00
fix clearing of oauth state cookie
missing path arg
This commit is contained in:
@@ -774,7 +774,7 @@ class HubOAuthCallbackHandler(HubOAuthenticated, RequestHandler):
|
|||||||
next_url = None
|
next_url = None
|
||||||
if arg_state or cookie_state:
|
if arg_state or cookie_state:
|
||||||
# clear cookie state now that we've consumed it
|
# clear cookie state now that we've consumed it
|
||||||
self.clear_cookie(self.hub_auth.state_cookie_name)
|
self.clear_cookie(self.hub_auth.state_cookie_name, path=self.hub_auth.base_url)
|
||||||
if isinstance(cookie_state, bytes):
|
if isinstance(cookie_state, bytes):
|
||||||
cookie_state = cookie_state.decode('ascii', 'replace')
|
cookie_state = cookie_state.decode('ascii', 'replace')
|
||||||
# check that state matches
|
# check that state matches
|
||||||
|
Reference in New Issue
Block a user