Update authentication.rst with new get_env
@@ -39,12 +39,13 @@ you need to add the following into ``config.yaml``:
env = super(BinderSpawner, self).get_env()
if 'repo_url' in self.user_options:
env['BINDER_REPO_URL'] = self.user_options['repo_url']
- if 'ref_url' in self.user_options:
- env['BINDER_REF_URL'] = self.user_options['ref_url']
- if 'binder_url' in self.user_options:
- env['BINDER_URL'] = self.user_options['binder_url']
- if 'persistent_binder_url' in self.user_options:
- env['BINDER_PERSISTENT_URL'] = self.user_options['persistent_binder_url']
+ for key in (
+ 'binder_ref_url',
+ 'binder_launch_host',
+ 'binder_persistent_request',
+ 'binder_request'):
+ if key in self.user_options:
+ env[key.upper()] = self.user_options[key]
return env
c.JupyterHub.spawner_class = BinderSpawner
