jupyterlab / jupyterlab-google-drive

Cloud storage for JupyterLab using Google Drive
BSD 3-Clause "New" or "Revised" License
400 stars 76 forks source link

Sign in error #134

Closed matdeofloggi closed 5 years ago

matdeofloggi commented 6 years ago

After selecting an account to sign in, i'm getting the following error message

image

I couldn't find any fix so far

Thanks

ian-r-rose commented 6 years ago

Hi @matdeof, thanks for the report.

I think that a week or two ago Google has started increasing the verification requirements for third-pary Google Drive integrations (such as this one). Unfortunately, I think that means that the default CLIENT_ID used by this extension will no longer work. Ultimately, it is probably the correct decision from a security standpoint, since Google cannot verify that the default CLIENT_ID is who it says it is (i.e., JupyterLab developers). But it does make distributing this extension more difficult.

We will have to respond to this development, but in the mean time you should still be able to create your own credentials using the instructions here. It is kind of an involved process, but should work.

If you run into any troubles, or have feedback on how to make the instructions clearer, feel free to ask them here!

matdeofloggi commented 6 years ago

Hi @ian-r-rose,

I'll follow the instructions and i reach you guys in case i have any troubles.

Thanks a lot, for the quick reply and for all the infomation as well!

matdeofloggi commented 6 years ago

So quick update, gladly i manage to follow your tutorial and now i'm able to sign in Google Drive, great tutorial! Thanks again! @ian-r-rose

ian-r-rose commented 6 years ago

Glad to hear it! I'll leave this open until I can update the documentation to communicate the changes to Google's verification process.

alex-choquette commented 6 years ago

Hi @ian-r-rose,

I had the same issue with signing in, and following the tutorial solved it for me. I can now access my Google Drive though JupyterLab and it seems to sync in real-time with my account !

My issue: when I try to open a file, let say a notebook, from Google Drive (in JupyterLab), it loads to infinity and never opens. The same thing happens when trying to create a new notebook.

What should I do? Thanks.

ian-r-rose commented 6 years ago

Hi @alex-choquette are there any errors output to the Javascript console (usually opened with F12)?

ian-r-rose commented 6 years ago

Also, have you set realtime to false as described here?

alex-choquette commented 6 years ago

Actually yes, I get this error

capture d ecran 2018-07-20 a 16 13 56

And I have set the realtime setting to false as such

capture d ecran 2018-07-20 a 16 15 08
ian-r-rose commented 6 years ago

It looks like your settings are mis-formatted. They need to be valid JSON (with optional comments), so something like

{
  "clientId": "your_id",
  "realtime": false
}
alex-choquette commented 6 years ago

It worked! Once again my poor knowledge was the real issue :S Let say I want to do realtime editing of a notebook with a collaborator, do I simply need to turn the "realtime" setting to "true" and share the notebook with my partner ?

ian-r-rose commented 6 years ago

Glad to hear you got it working! Unfortunately, Google has deprecated their realtime API, and it is no longer allowing new sign-ups (hence the somewhat awkward install process that you discovered).

We are working on a replacement, but it is not ready yet. So for now, you can access your Google Drive account, but it won't have realtime updates.

alex-choquette commented 6 years ago

I understand. Thank you for taking the time to answer :) Do you have an idea of approximately when it will be ready? And how can we be notified about it? Thanks.

ian-r-rose commented 6 years ago

I don't know exactly when it will be ready, but rest assured we'll be advertising it :)

nabriis commented 6 years ago

The link to the guide is not working anymore.

ian-r-rose commented 6 years ago

@nabriis See here

nabriis commented 6 years ago

Actually that is the guide I followed. Maybe I missed something?

ian-r-rose commented 6 years ago

What is the link that is broken?

nabriis commented 6 years ago

It is this one: https://github.com/jupyterlab/jupyterlab-google-drive/blob/master/docs/advanced.md Which is mentioned a bunch of times earlier in the chat.

I'll give the guide you linked another try.

ian-r-rose commented 6 years ago

It's the same file, just renamed.

ian-r-rose commented 5 years ago

Closing as answered.