Deprecate Authenticator.db, Spawner.db

These objects should not access the shared db session;
add a warning pointing to Issue about their removal if it is accessed
This commit is contained in:
Min RK
2022-05-05 11:54:55 +02:00
parent 585b47051f
commit ac3ef1efc1
4 changed files with 40 additions and 3 deletions

View File

@@ -411,7 +411,7 @@ class User:
authenticator=self.authenticator,
config=self.settings.get('config'),
proxy_spec=url_path_join(self.proxy_spec, server_name, '/'),
db=self.db,
_deprecated_db_session=self.db,
oauth_client_id=client_id,
cookie_options=self.settings.get('cookie_options', {}),
trusted_alt_names=trusted_alt_names,