Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
phunction
2 years agoHelpful | Level 5
.Net Maui
Hi, I need to find a way to connect my app with Dropbox. I am moving from a Xamarin.iOS app to .net Maui due to Xamarin not being supported anymore. (I can't just change my app to the new .NET as the...
phunction
2 years agoHelpful | Level 5
The main issue is the call back to the platform and adding some kind of listener.
I found somewhere a way to bring up a web login, and they could manually copy the key that is presented so it could be pasted into my app. I can't remember where that was and if it provided a refresh token as well so they would not have to do that every time the app is launched.
Or if someone else has an idea on how to make it work without that.
Is there a way to allow a login without having to spawn an external browser?
Greg-DB
Dropbox Community Moderator
2 years agophunction Здравко is correct, you can use ProcessCodeFlowAsync to complete the authorization flow by having the user copy/paste the authorization code into the app, passing the authorization code to that 'code' parameter.
You do need to send the user through the authorization flow in their system browser, but when you don't use a redirect URI in the authorization flow, that authorization code is presented directly to the user directly so they can copy/paste it. That way you can still implement the flow even if you can't redirect to some listener.
And yes, to get a refresh token, you'll need to request "offline" access.
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!