files_external_dropbox icon indicating copy to clipboard operation
files_external_dropbox copied to clipboard

[NC16] Button "grant access" is missing

Open sndrr opened this issue 5 years ago • 3 comments

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>');

sndrr avatar May 17 '19 10:05 sndrr

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 avatar Jun 02 '19 14:06 westy

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.

westy avatar Jun 02 '19 14:06 westy

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

tufu9441 avatar Jul 13 '19 12:07 tufu9441