expose cookie options and pass them down to spawners

enables forcing all-session cookies with:

```python
c.JupyterHub.tornado_settings['cookie_options'] = {
    'expires_days': None,
}
```
This commit is contained in:
Min RK
2018-03-23 10:38:50 +01:00
parent 82cab39e1c
commit e374e93cfb
4 changed files with 37 additions and 5 deletions

View File

@@ -218,6 +218,7 @@ class Service(LoggingConfigurable):
base_url = Unicode()
db = Any()
orm = Any()
cookie_options = Dict()
oauth_provider = Any()
@@ -299,6 +300,7 @@ class Service(LoggingConfigurable):
environment=env,
api_token=self.api_token,
oauth_client_id=self.oauth_client_id,
cookie_options=self.cookie_options,
cwd=self.cwd,
hub=self.hub,
user=_MockUser(