icewind1991/files_external_dropbox

[NC16] Button "grant access" is missing

sndrr opened this issue · 3 comments

sndrr commented

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

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

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.

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