Merge pull request #2309 from adelcast/dev/adelcast/refresh_user

refresh_user: add handler parameter
This commit is contained in:
Min RK
2018-11-16 14:52:55 +01:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -283,7 +283,7 @@ class Authenticator(LoggingConfigurable):
self.log.warning("User %r not in whitelist.", username)
return
async def refresh_user(self, user):
async def refresh_user(self, user, handler=None):
"""Refresh auth data for a given user
Allows refreshing or invalidating auth data.
@@ -295,6 +295,7 @@ class Authenticator(LoggingConfigurable):
Args:
user (User): the user to refresh
handler (tornado.web.RequestHandler or None): the current request handler
Returns:
auth_data (bool or dict):
Return **True** if auth data for the user is up-to-date