Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
barryplum
5 months agoExplorer | Level 3
This app is not valid when trying to authenticate with Oauth
I'm trying to connect Salesforce to Dropbox and I've created an app on Dropbox. I've set up the Auth provider and have a URI redirect setup, but no matter if I use the actual URI or localhost, I always get the "This app is not valid" error message.
I went so far as to build the URL manually to connect : https://www.dropbox.com/oauth2/authorize?response_type=code&scope=files.content.write+file_requests.write&state=12345&client_id=clientID&redirect_uri=http://localhost
I've verified the App key as the client id several times and it's correct. I've tried using a browser in incognito mode. I've tried re-creating the app from scratch and doing it all again. The status of the app is Development, but that seems correct, as I'm just trying to connect to it myself.
Any obvious issues?
3 Replies
- DB-Des5 months ago
Dropbox Community Moderator
Hi barryplum
I'll be happy to help with any issues you're having with the Dropbox API, could you share a screenshot of the full text of the error and the full URL for that page showing the error?
- barryplum5 months agoExplorer | Level 3
https://www.dropbox.com/oauth2/authorize_error?client_id=bvfexg3tcs78e1n&error_name=invalid_app
The client Id is correct for my app. If I watch the URL in chrome deveoper tools, the URI for the return url for my domain is correct as well.
- DB-Des5 months ago
Dropbox Community Moderator
The following authorization URLs work without issues for us:
https://www.dropbox.com/oauth2/authorize?response_type=code&scope=files.content.write+file_requests.write&state=12345&client_id=bvfexg3tcs78e1n&redirect_uri=https://[REDACTED].sandbox.my.salesforce.com/[REDACTED]
Keep in mind we redacted part of the 'redirect_uri' registered to the app in question. Using the actual 'redirect_uri' URL, as it is registered, allows us to continue with authorization without any errors.
This second authorization URL also allows us to continue with authorization without any errors thrown.
Using the original authorization URL you shared:
https://www.dropbox.com/oauth2/authorize?response_type=code&scope=files.content.write+file_requests.write&state=12345&client_id=bvfexg3tcs78e1n&redirect_uri=http://localhost
Results in an "Invalid redirect_uri." error, which would be expected as "http://localhost" is not the redirect URI registered to the app.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!