mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 06:52:59 +00:00
add User.auth_state column
a place for storing authenticator state, and a simple test case for alembic.
This commit is contained in:
@@ -285,7 +285,11 @@ class User(Base):
|
||||
|
||||
api_tokens = relationship("APIToken", backref="user")
|
||||
cookie_id = Column(Unicode(1023), default=new_token)
|
||||
# User.state is actually Spawner state
|
||||
# We will need to figure something else out if/when we have multiple spawners per user
|
||||
state = Column(JSONDict)
|
||||
# Authenticators can store their state here:
|
||||
auth_state = Column(JSONDict)
|
||||
|
||||
other_user_cookies = set([])
|
||||
|
||||
|
Reference in New Issue
Block a user