NastuzziSamy / files_external_gdrive

[BETA - UNSTABLE] GDrive external storage for NextCloud
GNU Affero General Public License v3.0
78 stars 24 forks source link

Feature request: separate Google credentials from add external storage page #52

Open sgofferj opened 5 years ago

sgofferj commented 5 years ago

Currently, the app works so that the Google credentials are entered when a new external storage is being added. That is somewhat unpractical as every user who wants to add their own Google Drive has to create a Google Cloud project, an OAuth client, etc. It would be more practical and also more in the sense of the Google Cloud processes if only the NC admin had to create a Google Cloud project, OAuth client, etc. and those credentials would be entered in an administration page of the app. When adding an external storage, the person whoi adds that would be redirected directly to the Google login page.

jaron-l commented 4 years ago

The reason you have to create a Google Cloud project and OAuth client is because that is the current method of authorization. I don't think there is a way to get around that if that is the authorization method as you need the authorization for each account. I didn't research a ton but just googling around seems to suggest that this is the only current secure way of accessing Google Drive in an api sort of way. This is a Google Drive limitation and not Nextcloud or this app.

sgofferj commented 4 years ago

You misunderstood. What I meant is that currently every user needs to create their own Google project. What I'm suggesting is that only the site owner creates a project which is used for auth by every user. That's the way Google auth is supposed to work anyways