Remove the code to delete a session after it is used.

pull/7068/head
Patrick Cloke 2020-03-25 15:17:35 -04:00
parent d0ece9edfd
commit ebc7245ade
1 changed files with 0 additions and 10 deletions

View File

@ -351,12 +351,6 @@ class AuthHandler(BaseHandler):
list(clientdict),
)
# Once the authentication flow has completed and the final
# operation is requested, the session should be removed so it
# cannot be re-used.
if "type" not in authdict:
self._remove_session(session["id"])
return creds, clientdict, session["id"]
ret = self._auth_dict_for_flows(flows, session)
@ -529,10 +523,6 @@ class AuthHandler(BaseHandler):
return self.sessions[session_id]
def _remove_session(self, session_id) -> None:
"""Remove a session (if it exists)."""
self.sessions.pop(session_id, None)
@defer.inlineCallbacks
def get_access_token_for_user_id(
self, user_id: str, device_id: Optional[str], valid_until_ms: Optional[int]