mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-12 12:33:02 +00:00
Remove auth state from user's self handler
This commit is contained in:
@@ -24,9 +24,7 @@ class SelfAPIHandler(APIHandler):
|
||||
user = self.get_current_user_oauth_token()
|
||||
if user is None:
|
||||
raise web.HTTPError(403)
|
||||
user_ = self.user_model(user)
|
||||
user_['auth_state'] = await user.get_auth_state()
|
||||
self.write(json.dumps(user_))
|
||||
self.write(json.dumps(self.user_model(user)))
|
||||
|
||||
|
||||
class UserListAPIHandler(APIHandler):
|
||||
|
@@ -18,7 +18,6 @@ import jupyterhub
|
||||
from .. import orm
|
||||
from ..user import User
|
||||
from ..utils import url_path_join as ujoin
|
||||
from ..utils import maybe_future
|
||||
from . import mocking
|
||||
from .mocking import public_host, public_url
|
||||
from .utils import async_requests
|
||||
|
Reference in New Issue
Block a user