Skip to content

add access_token to useProxy check - #104

Open
djeeg wants to merge 1 commit into
jupyterlab:mainfrom
djeeg:master
Open

add access_token to useProxy check#104
djeeg wants to merge 1 commit into
jupyterlab:mainfrom
djeeg:master

Conversation

@djeeg

@djeeg djeeg commented Jun 2, 2020

Copy link
Copy Markdown

No description provided.

@ian-r-rose

Copy link
Copy Markdown
Member

Thanks @djeeg, is there an issue you are trying to fix here? This request (just checking for the proxy) shouldn't need authenticated access.

@djeeg

djeeg commented Jun 2, 2020

Copy link
Copy Markdown
Author

oh right, the details seems to have gone missing.

quick summary of the setup:

  • jupyter hub on kube
  • connecting to gh enterprise instance
  • using user personal token
  • each user stores accessToken in extension config

if i burn this config into the notebook config py:

and set extension config per user to be:

  • accessToken = user's personal access token

on call to _apiRequest

an alternative way to solve this, could be to have a separate service-side route just for the proxy test, that was a no-op and just returned "ok" or something

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants