Bug fix: expire invalid access tokens

This commit is contained in:
Negar Fazeli 2016-07-08 16:53:18 +02:00
parent 10f4856b0c
commit 0136a522b1
6 changed files with 42 additions and 9 deletions

View file

@ -629,7 +629,10 @@ class Auth(object):
except AuthError:
# TODO(daniel): Remove this fallback when all existing access tokens
# have been re-issued as macaroons.
if self.hs.config.expire_access_token:
raise
ret = yield self._look_up_user_by_access_token(token)
defer.returnValue(ret)
@defer.inlineCallbacks