mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-13 04:53:01 +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()
|
user = self.get_current_user_oauth_token()
|
||||||
if user is None:
|
if user is None:
|
||||||
raise web.HTTPError(403)
|
raise web.HTTPError(403)
|
||||||
user_ = self.user_model(user)
|
self.write(json.dumps(self.user_model(user)))
|
||||||
user_['auth_state'] = await user.get_auth_state()
|
|
||||||
self.write(json.dumps(user_))
|
|
||||||
|
|
||||||
|
|
||||||
class UserListAPIHandler(APIHandler):
|
class UserListAPIHandler(APIHandler):
|
||||||
|
@@ -18,7 +18,6 @@ import jupyterhub
|
|||||||
from .. import orm
|
from .. import orm
|
||||||
from ..user import User
|
from ..user import User
|
||||||
from ..utils import url_path_join as ujoin
|
from ..utils import url_path_join as ujoin
|
||||||
from ..utils import maybe_future
|
|
||||||
from . import mocking
|
from . import mocking
|
||||||
from .mocking import public_host, public_url
|
from .mocking import public_host, public_url
|
||||||
from .utils import async_requests
|
from .utils import async_requests
|
||||||
|
Reference in New Issue
Block a user