Skip to content
This repository has been archived by the owner on Jan 24, 2018. It is now read-only.

Commit

Permalink
add comment about what tokens are for
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed Jan 5, 2017
1 parent 77f36ff commit 5488e6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dockworker.py
Expand Up @@ -55,7 +55,6 @@ def __init__(self,
timeout=30,
max_workers=64,
assert_hostname=False,
use_tokens=False,
):

#kwargs = kwargs_from_env(assert_hostname=False)
Expand Down Expand Up @@ -111,6 +110,7 @@ def create_notebook_server(self, base_path, container_name, container_config):
# Important piece here is the parametrized base_path to let the
# underlying process know where the proxy is routing it.
if container_config.use_tokens:
# generate token for authenticating first request (requires notebook 4.3)
token = binascii.hexlify(os.urandom(24)).decode('ascii')
else:
token = ''
Expand Down

0 comments on commit 5488e6f

Please sign in to comment.