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

enable using tokens #257

Merged
merged 4 commits into from Jan 5, 2017
Merged

enable using tokens #257

merged 4 commits into from Jan 5, 2017

Conversation

minrk
Copy link
Member

@minrk minrk commented Jan 4, 2017

off by default, but with --use_tokens=1, each user is assigned a token.

  • I need to get the tests working to verify that this works before merging.

closes #256

@minrk minrk changed the title [WIP] enable using tokens enable using tokens Jan 4, 2017
@minrk
Copy link
Member Author

minrk commented Jan 4, 2017

Tested and works.

@rgbkrk
Copy link
Member

rgbkrk commented Jan 4, 2017

Nice! You'll need to rebase since I merged the networks PR.

Copy link
Member

@rgbkrk rgbkrk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How should this be used with the /api/spawn endpoint?

off by default, enable with:

    --use_tokens=1

with tokens enabled, each user is redirected to a notebook server with a token,
making each server semi-private for the user who requests it.
@minrk
Copy link
Member Author

minrk commented Jan 4, 2017

@rgbkrk thanks, rebased and added the token to /api/spawn, which I had forgotten about.

@@ -107,8 +110,12 @@ 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:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps add commit message text as a comment here:

use_tokens is off by default, enable with:

    --use_tokens=1

with tokens enabled, each user is redirected to a notebook server with a token,
making each server semi-private for the user who requests it.

Copy link
Member

@willingc willingc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. One small comment @minrk.

@minrk
Copy link
Member Author

minrk commented Jan 5, 2017

Thanks!

@minrk minrk merged commit 83affb3 into jupyter:master Jan 5, 2017
@minrk minrk deleted the with-token branch January 5, 2017 10:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

token authentication
3 participants