mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-15 14:03:02 +00:00
move auth_state encryption outside the ORM
privy is used for encryption - db only has blob column, no knowledge of encryption - add CryptKeeper for handling encryption - use privy for encryption, so we have fewer choices to make - storing/loading encrypted auth_state runs in a ThreadPool
This commit is contained in:
@@ -334,7 +334,7 @@ class BaseHandler(RequestHandler):
|
||||
# always set auth_state and commit,
|
||||
# because there could be key-rotation or clearing of previous values
|
||||
# going on.
|
||||
user.auth_state = auth_state
|
||||
yield user.save_auth_state(auth_state)
|
||||
self.db.commit()
|
||||
self.set_login_cookie(user)
|
||||
self.statsd.incr('login.success')
|
||||
|
Reference in New Issue
Block a user