From f58015dc5730b5d11391b6661566a39dcb070d74 Mon Sep 17 00:00:00 2001 From: Min RK Date: Tue, 18 Apr 2017 11:21:47 +0200 Subject: [PATCH] remove references to unused other_user_cookies OAuth gets rid of the concept of the Hub managing cookies on behalf of sub-servers --- jupyterhub/handlers/login.py | 3 --- jupyterhub/orm.py | 2 -- 2 files changed, 5 deletions(-) diff --git a/jupyterhub/handlers/login.py b/jupyterhub/handlers/login.py index dd250ac8..c70b89fd 100644 --- a/jupyterhub/handlers/login.py +++ b/jupyterhub/handlers/login.py @@ -19,9 +19,6 @@ class LogoutHandler(BaseHandler): if user: self.log.info("User logged out: %s", user.name) self.clear_login_cookie() - for name in user.other_user_cookies: - self.clear_login_cookie(name) - user.other_user_cookies = set([]) self.statsd.incr('logout') self.redirect(url_path_join(self.hub.server.base_url, 'login'), permanent=False) diff --git a/jupyterhub/orm.py b/jupyterhub/orm.py index a1724748..2ddf1f57 100644 --- a/jupyterhub/orm.py +++ b/jupyterhub/orm.py @@ -393,8 +393,6 @@ class User(Base): # group mapping groups = relationship('Group', secondary='user_group_map', back_populates='users') - other_user_cookies = set([]) - @property def server(self): """Returns the first element of servers.