hevelius / files_external_onedrive

:mega: :floppy_disk: External storage support for Microsoft OneDrive
GNU General Public License v2.0
72 stars 22 forks source link

Failed to authorize two Onedrive accounts #54

Open wbs306 opened 3 years ago

wbs306 commented 3 years ago

I have two Onedrive accounts and want to add them to my folder. But it seems like I can only add one account and failed to another. Even if I use the admin account to add the other one, it still failed. image Does it support multiple accounts?

JSdeJong commented 3 years ago

I think I have sort of the same issue. I first added a Onedrive External storage without any problems. Then I added the Onedrive Integration with another app account, and now I can't add any Onedrive External storage anymore: Grant Access button isn't open a oauth page.

Had the same issue with de Google Drive External storage and Goolgle Drive integration; even with differen app accounts, the "Grant Access" button isn't doing anything. Double checked the apps and everything; and since I removed the google Drive integration I can connect Google drive with external storage again. But this doesn't work for Onedrive.

On another Nextcloud instance the connection opening an oauth page.

Or it relates to #53; but I can't seem to get it working in Firefox neither

baui-dev commented 3 years ago

Take a look in you logs at Settings/Logging right after the error

JSdeJong commented 3 years ago

@Rawko The logs don't show anything. Pressing the button doesn't seem to respond.

Only line extra in Chrome console globals.js:60 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. ie @ globals.js:60 get @ globals.js:91 (anonymous) @ gdrive.js?v=940e97dc-0:60 dispatch @ jquery.js:4737 v.handle @ jquery.js:4549

baui-dev commented 3 years ago

@JSdeJong Do you have Composer installed and ran "Composer update" in files_external_onedrive. Fixed almost every issue I had on different distros. The problem for me is that OneDriveController.php isnt able to create a list of the directory.