Learn how to make the most out of the Dropbox Community here 💙!
Forum Discussion
chemical21
2 years agoExplorer | Level 4
Re: How to programmatically get the Authorization code without requiring the user approval in OAuth
I´d like get the autorization code without being prompted out of my application. I think the listener are about listem to process why not just get redirected parameters code and state from a ...
Greg-DB
Dropbox Staff
2 years agoI'm not sure I fully understand all of your questions, so feel free to follow up and clarify. I've also split out your message here to a new thread so as not to bother the members of the old thread.
It's not possible to get an authorization code without processing the app authorization flow. The user needs to authorize the app at least once in order for the app to be able to access the user's account. That authorization process occurs on the Dropbox web site.
The Dropbox .NET SDK implements much of the app authorization flow for you, and offers example code, but use of the SDK is optional. If you don't want to or can't use it for your use case or environment for whatever reason, you can use the Dropbox API directly without the SDK. You can find information on implementing the authorization flow directly in the OAuth Guide and authorization documentation. That does have to be implemented as documented though; Dropbox doesn't offer a way to use a certificate/PKCS file and apps shouldn't handle user credentials (like the username/password) themselves.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,973 PostsLatest Activity: 5 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!