Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Fix logout URL to fully logout. #59

Merged
merged 2 commits into from
Jun 1, 2018
Merged

Fix logout URL to fully logout. #59

merged 2 commits into from
Jun 1, 2018

Conversation

liffiton
Copy link
Contributor

@liffiton liffiton commented Jun 1, 2018

Fixes #51.
(Fair warning: I have not been able to test this change myself. I apologize for that.)

This URL shuts down the single-user server as well as logging out of the hub.
Fixes #51.
src/index.ts Outdated
@@ -65,9 +66,9 @@ function activateHubExtension(app: JupyterLab, palette: ICommandPalette, mainMen

commands.addCommand(CommandIDs.logout, {
label: 'Logout',
caption: 'Log out of the Hub',
caption: 'Shut down this server and log out of the Hub',
Copy link
Member

Choose a reason for hiding this comment

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

Is there a way that we can only logout users without shutting down their servers? I think we should have that ability as that is also possible in the classic interface.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My understanding was that the issue in #51 was that the server was still accessible specifically because it was still running. I don't know if there is a way to leave the server running while also logging out in the browser.

As far as I can see, though, this change uses the same logout URL as the classic interface ('/tree/'), so it should behave the same way.

Copy link
Member

Choose a reason for hiding this comment

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

Ok, in that case we should keep the menu item label as "Log out...". Visiting the old link does not stop the pod.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, okay. Done.

@betatim betatim merged commit 2d78b6a into jupyterhub:master Jun 1, 2018
@betatim
Copy link
Member

betatim commented Jun 1, 2018

Thanks a lot for helping out! And congrats on your first contribution.

@liffiton liffiton deleted the patch-1 branch June 3, 2018 23:16
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.

2 participants