We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
JMagnat
9 years agoExplorer | Level 3
Migration V1 to V2
Hi, in V1 I simply use: Public Function write(myFile As String) As MetaData
Dim Client As DropNetClient = New DropNetClient(Konstanten.DropboxAppKey, Konstanten.DropboxApp...
Greg-DB
Dropbox Community Moderator
9 years agoIf you use the "code" flow without a redirect URI, then yes, the user will have to manually copy and paste the authorization code into the app.
Using a redirect URI is recommended though, as shown in the example, as that will automatically pass the authorization code to your app, without the user copying/pasting it manually.
Using a redirect URI is recommended though, as shown in the example, as that will automatically pass the authorization code to your app, without the user copying/pasting it manually.
JMagnat
9 years agoExplorer | Level 3
OK, I understand this. Thanx
Unfortunately my next question... ;-)
Which format must the redirected uri be have? I must register this uri in the apps profile at dropbox. How can it be variable if my app runs on many different PCs?
- Greg-DB9 years ago
Dropbox Community Moderator
As a security feature, each exact redirect URI does need to be pre-registered.
If you don't know the redirect URI ahead of time, one thing you may be able to do instead is to use one static redirect URI but encode the necessary information in the 'state' parameter, and decode it as necessary after the redirect back to your app, to handle it as necessary:
https://www.dropbox.com/developers/documentation/http/documentation#authorization
Alternatively, you could forgo using a redirect URI entirely. With the "code" flow, you can omit redirect_uri and have the user copy and paste the code manually. (Or, for the "token" flow, you can use https://www.dropbox.com/1/oauth2/display_token as the redirect URI and have the user copy and paste the access token.)- JMagnat9 years agoExplorer | Level 3
A static redirect URI? What could this be? I think I must use a format like "https:\\aWebSide.com\anything" but this side doesnt exist and dropbox will send the users browser to them.
With ApiV1 the user connect to dropbox and my app get the token to download anything to dropbox. This isnt a web app.
- JMagnat9 years agoExplorer | Level 3
I see this code in an example
var builder = new UriBuilder( Uri.UriSchemeHttps, this.Request.Url.Host); builder.Path = "/Home/Auth"; return builder.ToString();But this generates no static Uri. How can I register this kind of redirectUri in the my dropbox app profile?
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!