-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App thinks it is using Google Oauth #3
Comments
I can confirm this. When I tried granting access again it finally worked. |
I've tried reinstalling, adding as an admin or as a regular user, creating different Dropbox API credentials. All to no avail. |
Just thought I'd update here. I tried replacing the Google portions of the URL with the Dropbox info, that is, changing
to
but it returns an error: "Step 2 failed. Exception: Error fetching OAuth2 access token, message: 'invalid_client: The OAuth client was not found.'" EDIT: Changing |
Same here :( Makes me sad.... Did someone get it to work? |
Yepp, same here... |
I wonder if we have anything in common... I run Nextcloud via Docker using Wonderfalls's image. Not sure if that has anything to do with the error. |
same issue here with "plain" NextCloud 12.0.3. Files_external and Files_external_dropbox is enabled and as soon as i click on the grant button i get redirected to a google (?!) OAuth2 page with an access denied. |
It seems to be some kind of race condition in the JS code. The button "Grant access" triggers both the Dropbox and Google Drive JS handlers. Most of the time Google Drive wins, and performs the redirect to the wrong URL. I was able to get the correct URL by stepping through the code with the JS debugger. Then I manually copied it into a new browser tab and it worked. |
I'm seeing an error on the console:
|
I've managed to get past the grant step but it won't download and I'm getting a ton of errors.
Anyway this is how I got this far..
|
@Jonthe838, I get |
@ConorIA That's the same error as you posted before. Double check your Client ID and the URL that you've entered on Dropbox's website for your app, it seems as something doesn't match. Where do you have your Nexcloud installation? What is your file path? I managed to get it "working" again following the steps that I did earlier today. I still can't download anything but yeah. One problem that I saw a lot of people having over at the OwnCloud forum was that they tried to copy the Client Secret / key which yielded problems. I don't think that's the case here but its worth noting. |
@Jonthe838, no such luck. I have no idea what I'm doing wrong. I guess the first thing to rule out: the ClientID is the "App key", right? |
@ConorIA Correct, that is what I used at least. Do your site have SSL? If not, change my link to http. Also what type of access have you given your app? Have you installed all of the dependencies? I mean I'm fumbling in the dark here, all I did was a little reading up on the documentation for the API v2 and compared it to the link that the "grant button" provided me with and worked my way through it until it matched the examples on dropbox.com and it took me back to my Nextcloud server. |
@Jonthe838, everything seems to be in order. I've even tried creating another Dropbox API app, but to no avail. Anyway, I will wait it out for now. Thanks for your support! |
@ConorIA I had exactly the same problem and as said by @Jonthe838 I just typed my secret key instead of copy/pasting it and... it worked! Edit: well, you just need to be patient, I now can see the files, but as noted in another issues, all files and directory names are lower case... |
This is also true for me on nc 12.03. I also tried to type instead of paste both key and secret but to no avail. In my case, I also see #11 at the same time. |
Please retry with latest master if you're running into this issue |
I'm still getting a Google OAuth page. |
With the latest master, it indeed works for me. I had to re-add the app on the dropbox website and also I saw a notification popup two or three times about failed Oauth2 verification though, before the external storage became green. |
My issue with the client not being found made me think to check the db:
|
By manually typing App key and App secret, I got the authorization process to finish, but syncing does not work. The root directory of my Dropbox got synced, but nothing else. The log is flooded with 'Could not load storage: "Unable to get backend for files_external_dropbox"', which might be because of these to entries from around the time I set up the authorization:
Sitenote: "Function mcrypt_create_iv() is deprecated at /var/www/nextcloud/apps/files_external_dropbox/vendor/kunalvarma05/dropbox-php-sdk/src/Dropbox/Security/McryptRandomStringGenerator.php#47" |
People are reporting various problems is this issue, does anyone still experience the original "thinks it's google drive" issue with latest master? |
Yes. I've never had any luck getting past the auth. |
Are you having the problem described in the original issue (being redirected to google auth instead of dropbox) or something else. |
I was running into the Google oAuth issue. That said, I hadn't tried to use this app since NC12. On NC13 now, I am hitting another wall. I just followed the instructions in the readme to a tee and yet am getting a blank external storage screen and the error: `Could not find resource file "/apps/files_external/js/../../files_external_dropbox/js/dropbox.js"`
|
@ConorIA I think this issue occurs when the app is installed in a secondary app folder (e.g. the |
@simonbru. That's done the trick. Thanks! |
When I enter the app key and secret, I get taken to a Google Drive OAUTH page with a 404 error.
The text was updated successfully, but these errors were encountered: