add User.auth_state column

a place for storing authenticator state,
and a simple test case for alembic.
This commit is contained in:
Min RK
2016-04-11 16:44:40 +02:00
parent b68569f61c
commit 64dd1db327
2 changed files with 30 additions and 0 deletions

View File

@@ -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([])