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

Passing headers. VScode to Colab Enterprise/JupyterLab with authentication + CORS #15821

Closed
gogasca opened this issue Jul 4, 2024 · 3 comments
Assignees
Labels
feature-request Request for new features or functionality

Comments

@gogasca
Copy link

gogasca commented Jul 4, 2024

Currently I want to connect VScode with JupyterLab extension to Google Cloud Colab Enterprise or AI Notebooks or any JupyterLab service that requies authentication.
I'm currently using JupyterLab Gateway as a way to overwrite headers (Authentication + CORS - Origin). Is there a way to overwrite HTTP headers in current Extension? If not what is the any good pointers for me to add support for this.

Background:

Wanted behavior:
Ability to pass custom HTTP header for HTTP(s) and Websockets. Example:

headers = {"Origin": PROXY_URL, "Authentication": AUTH_TOKEN}
  • Some headers like Authentication can be regenerated every X seconds. (Using an external command gcloud)

I would like to see how can I add this to Extension properties. Any pointer will be appreciated

@gogasca gogasca added the feature-request Request for new features or functionality label Jul 4, 2024
@gogasca
Copy link
Author

gogasca commented Jul 12, 2024

@DonJayamanne any pointers are appreciated. I would be happy to propose a PR. Thanks

@gogasca
Copy link
Author

gogasca commented Jul 18, 2024

@DonJayamanne
Copy link
Contributor

@gogasca Thanks for filing this issue.
At this stage we have no plans on supporting such a feature request.
However you can create your own extension that passes the necessary headers and the like.
Please have a look at the Jupyter Hub extension that we've created.

This is a simple extension that takes care of auth and the like (with custom headers).

https://github.com/microsoft/vscode-jupyter-hub

Feel free to reach out for additional details with regards to this extension or the like

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

2 participants