Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a UI to let users share their servers to other users and groups #438

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Hyrla
Copy link

@Hyrla Hyrla commented Feb 8, 2025

Hello,
I've added the necessary code related to my issue #437.

image

It replaces the default link share UI in cases where Jupyter is running behind a Hub that allows the creation of shares. It enables users to:

  • Create a share to the current server for a user or a group using a search box.
  • Revoke a share for a user or a group.

The permissions needed (both in Hub and Lab) are:

  • "shares!user" to manage users' shares.
  • "read:users:name" to create shares by designating a user by their name (TODO: check if it's really necessary if list:users is already in scope?).
  • "list:users" (not mandatory) to list users for the search box.
  • "list:groups" (not mandatory) to list groups for the search box.
  • "servers!user" (not mandatory) to allow other users to start and stop the shared server

My code does not:

  • Work if neither list:users nor list:groups is in scope. I wanted to add an option to invite someone by typing their exact username, without having to search.
  • Manage share codes, which may be useful in some scenarios.

This development has been made for my own internal purposes, but I think it could be useful to everyone. Comments and critiques are welcome!

Copy link
Contributor

github-actions bot commented Feb 8, 2025

Binder 👈 Launch a Binder on branch Hyrla/jupyter-collaboration/main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants