One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
Bradley_Smith
5 years agoExplorer | Level 3
OAuth options for Windows desktop apps
I notice that the Dropbox API has now officially dropped support for Internet Explorer, which means that any Windows desktop application that integrates with Dropbox is now faced with an uphill battle:
Previously, we could just use the Internet Explorer-based WebBrowser ActiveX control, which allowed us to hook into navigation events and parse the access token after the user completed the authentication/authorization process.
It looks like the only option available to us now is for our desktop applications to host an entire HTTP server and listen for requests to the redirect URI. The Dropbox API includes a C# example that does this using the HttpListener class. This uses http.sys, which (since Windows Vista) requires either an elevated process, or for a URL reservation to be made by an elevated user. Does the Dropbox team seriously expect desktop apps to require admin privileges in order to handle the OAuth flow?
Realistically, what are the options for handling OAuth in Windows desktop apps now? Hosting an HTTP server locally is hugely inefficient and resource-intensive, particularly if additional third-party dependencies are needed in order to avoid using http.sys. Is there perhaps a way to use a custom URI scheme to handle the redirect URI from the user's web browser? Or any other lightweight alternative?
- Greg-DB
Dropbox Staff
Thanks for the feedback! I'll pass this along to the team to see if we can offer a simpler and more lightweight option in the future.
As it stands, the only official resources I can offer are the .NET SDK documentation and examples.
Alternatively, note that a redirect_uri isn't strictly required by the OAuth 2 flow when using 'response_type=code', so one option would be to omit that in which case the user would copy/paste the authorization code manually.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,941 PostsLatest Activity: 10 hours ago
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 or Facebook.
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!