jupyter / jupyter-drive

Google drive for jupyter notebooks
BSD 2-Clause "Simplified" License
418 stars 78 forks source link

Constant requests for authentication #141

Closed philipsd6 closed 6 years ago

philipsd6 commented 7 years ago

I've got jupyter-drive configured in mixed mode on my Jupyter Hub setup. I've created my own Google project for this in order to use my own CLIENT_ID. My ~/.jupyter/nbconfig/common.json contains:

  "gdrive": {
    "METADATA_SCOPE": true,
    "FILE_SCOPE": true,
    "CLIENT_ID": "123451234512-asdlfkjhadslfkjhaldskjfhaldskjfha.apps.googleusercontent.com"
  },

It kinda works. With this setup, I'm prompted to authenticate with Google when first launched. The OAuth window pops up but disappears immediately, presumably because I've already authenticated with Google. The directory or Notebook is loaded ok. The problem is every time I click on a folder or notebook to load, I am re-prompted for authentication -- even if I'm working under /local.

Why isn't it remembering my authentication?

ianabc commented 7 years ago

Sorry to resurrect this, but did you ever find out why? Or did you find a workaround? I just hit the same problem.

paulsp94 commented 7 years ago

Hey @philipsd6 , I encountered the same problem. Did you find any solution for it?

philipsd6 commented 6 years ago

I just set this up again on my WSL setup and this is still happening, even without customizing common.json with my own client_id. I don't know why. It's disheartening that this bug report hasn't been answered for 7 months.

ian-r-rose commented 6 years ago

Hi @philipsd6, sorry to hear you are having trouble with this. I am not sure what is causing the issue that you are running into, but the integration with Google Drive provided by jupyter-drive is being deprecated in favor of the plugin for JupyterLab, jupyterlab-google-drive. Given our limited developer resources, we have not been able to put much time into this project recently.

philipsd6 commented 6 years ago

Yes, I just heard about this, and so I installed Jupyterlab and jupyterlab-google-drive, but continue to have new and exciting problems, so I had to open up an issue there as well.

Carreau commented 6 years ago

Yes, I just heard about this, and so I installed Jupyterlab and jupyterlab-google-drive, but continue to have new and exciting problems, so I had to open up an issue there as wel

Try deactivating any privacy / blocking extensions, we need to set cookies w/ google and cross domain, if an extension is messing with that that could be the reason.

philipsd6 commented 6 years ago

Yes, that is the problem, confirmed by disabling Privacy Badger and uBlock Origin, however, as those are installed by corporate group policy, I cannot keep them disabled for long before they are automatically re-enabled and then this fails.

Not more updates for this on this thread, as it's on this one now: https://github.com/jupyterlab/jupyterlab-google-drive/issues/105

Carreau commented 6 years ago

Yes, that is the problem, confirmed by disabling Privacy Badger and uBlock Origin, however, as those are installed by corporate group policy, I cannot keep them disabled for long before they are automatically re-enabled and then this fails.

You should be able to setup/Ask for an exception to be made in the app configuration for the pair (url-of-jupyter/google-api).

philipsd6 commented 6 years ago

as I have Admin on my laptop, I'm more comfortable taking matters into my own hands. ;)