icewind1991 / files_external_dropbox

External Storage backend for Dropbox
GNU Affero General Public License v3.0
56 stars 19 forks source link

[NC16] Button "grant access" is missing #28

Open sndrr opened 5 years ago

sndrr commented 5 years ago

The external storage config for dropbox does not save, and shows an exclamation (and in the web developer console it shows a 422 error).

I eventually got it working by applying the settings manually to the DB.

Adding the external storage:

insert into oc_external_mounts (`mount_point`, `storage_backend`, `auth_backend`, `priority`, `type`) values ('/DropboxV2', 'files_external_dropbox', 'oauth2::oauth2', 100, 1);

Then finding out the mount_id:

select mount_id from oc_external_mounts where mount_point = '/DropboxV2';

And finally:

insert into `oc_external_config` (`mount_id`,`key`,`value`) values (<YOUR MOUNT_ID>,'configured','true');
insert into `oc_external_config` (`mount_id`,`key`,`value`) values (<YOUR MOUNT_ID>,'client_id','<YOUR app key>');
insert into `oc_external_config` (`mount_id`,`key`,`value`) values (<YOUR MOUNT_ID>,'client_secret','<YOUR app secret>');
westy commented 5 years ago

Do you know can you apply it to just a single user? I'm guessing it's another key in oc_external_config, but cannot find a list of available keys at the moment...

westy commented 5 years ago

Ah ok, can assign to a user from administrator config pages...

Hmm, still exclamations for me anyway though. I'm guessing needs an update following Dropbox changes or something.

tufu9441 commented 5 years ago

I have just the same problem. Looking forward to some updates or solutions.