Comments
-
Would be fine if you have supplied a reference to the example you are evaluating and the code-line where issues are rising from. As far as I can see, you are trying to upload something and file content get directed to as metadata instead of as file content (as should be). This comes/can be seen from the error message. 🤔 I…
-
@"zsiwik" wrote:... Does DropBox grant access to their API keys for this purpose? When you create your own application, any application key and secret (you are talking about most probably) are yours actually. Have you created already an application here? If not, finally - it's time. 😉
-
@"mikesam", to be honest, I'm not certain what you are asking actually. Greg's post above describes things in useful manner. Can you clarify what isn't working for you or what exactly you can't understand? 🧐 Add: Something missing, both in OP and in Greg's answer too, is at present long lived access token is not issued…
-
@"mikesam" wrote:... If yes, do we need to hardcode the token and make it available to all client user? ... Hi @"mikesam", Any kind of authentication info (including token) should be handled with care. Such information should be embedded only when application gonna be used on server side or by responsible person (or…
-
Hi @"Omri1984", Yes, when refresh token is in use (as a client constructor argument), the client automatically refresh access token whenever needed. In your code no any refresh token can be seen. 🤔 (or I'm missing something) Just do what you are saying. 😉 Follow the your own "answer". Good luck.
-
'dbx' object seems not properly initialized. Take a look how have you initialized it.
-
@"Melisek", Name all your vars properly to avoid confusion! For instance, is 'RedirectUri' really means redirect URI or ... something else? 😉
-
I mean something like: "\"" + RedirectUri.ToString() + "\"" It works for me. 😉 In such a way the space char comes scopes separator only, but not arguments separator.
-
Easiest workaround would be proper quoting. 😉 (As would be on command line)
-
If you mean the missing file, are you certain 'C:\Programming\C#\MelisekGameManager\MelisekGameManager\bin\Debug\net6.0-windows\index.html' exists? 🤔 Take a look.
-
Seems improper argument quoting. Space chars are used as a scopes separator, but the same chars are arguments separators too. Try following version: System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo(authorizeUri.ToString()) {UseShellExecute = true}); I believe, now it's gonna work. 😉 Good luck.
-
@"donaldp" wrote:..., but I didn't get a refresh token, only the access token. Is there another parameter or something I need to specify, because I thought I'd done everything I needed to get the refresh token too (for offline processing). ...…
-
@"Watapana" wrote: ... When I check the folder, it's listed as "not shared". The team check shows I'm the owner and see all other members listed. ... Hi @"Watapana", Most probably you have unintentionally unmounted/deleted the folder you are talking about. Just creating a new folder on the same place with the same name…
-
Hi @"Melisek", Are you certain that Windows machine, used as a DUT, has properly set default web browser? 🧐 Try set it anew or change to some other. If no luck yet, test again with a bit changed 'authorizeUri'. Add to following line: @"Melisek" wrote:... ... System.Diagnostics.Process.Start(authorizeUri.ToString()); ...…
-
@"dbox-arg0" wrote:... * I was doing the Dropbox connection via call to chrome.tabs.create({ url: authUrl}), is this intended to be substituted by launchWebAuthFlow()? ... The documentation:You'll use the redirect URL in two places: * supply it when registering your extension as an OAuth2 client. * pass it into…
-
@"Melisek" wrote:... So far everything is going smoothly, but i have no idea how to refresh the token in my app. ... Hi @"Melisek", As far as you have set/constructed your Dropbox client object properly (as shown in all examples - including basic), you wont need to refresh any token explicitly. The client object does take…
-
@"donaldp" wrote:... So does the PKCE URL change each time, or I only need to generate it once? Technically it's possible to be a constant, but as I said before, why are you using PKCE in this case? 🤷 It becomes meaningless and I wouldn't give you such advice.
-
OMG... Documentation:Example: Auth URL for PKCE code flow https://www.dropbox.com/oauth2/authorize?client_id=<APP_KEY>&response_type=code&code_challenge=<CHALLENGE>&code_challenge_method=<METHOD> Be more careful, where you are looking on!
-
Yes, we are talking for different things. @"donaldp", It's correct: @"donaldp" wrote:From https://developers.dropbox.com/oauth-guide - "The redirect_uri is optional with the code flow - if unspecified, the authorization code is displayed on dropbox.com for the user to copy and paste to your app" ... But the following:…
-
@"ariod" wrote:... My understanding per this document is that in this case the search should work on all folders within the user's Dropbox folder, including team folders. Am I correct? In the topic are described different cases. Only one of them is "root" (in spite all use the same header)! In case of properly set root -…
-
🙂 No, no... Take a look here for more info. 😉 Hope this helps.
-
@"mansi2821" wrote:... is there a way i can download these documents You didn't post particular file metadata, but file type, you're referring to, is not usually downloadable, so: Direct download - No. Export - Yes. 😉
-
@"donaldp" wrote:... And the doco states that step is optional, as I already said. ... Probably we are talking for different things. How constructing URL used on launching the browser (where you are getting code) can be optional? You are getting such code every time OAuth is on go, but it's optional... 🤔 Can you clarify…
-
@"donaldp" wrote:... I'm getting the code directly from the browser - I'm not doing it via the app - so this is the first step in the process in the app. There is no redirect. The user gets the code, then comes to the app with it. The doco says that you can do that, hence why the subsequent parameters are all optional.…
-
@"donaldp" wrote:... if (code is object) { PKCEOAuthFlow pKCEFlow=new PKCEOAuthFlow(); ... As can be seen from your post, you are constructing pKCEFlow object anew after you have got the code. How you guarantee that PKCE code challenge, send as part of initial query (targeting the code you have received on redirect), match…
-
Did you properly set the call' root? If not set, the root defaults to logged user' (team member) private folder and everything that can be done (including search) is restricted to there.
-
Hmm... The examples could be better structured (sometime they're even confusing). Ok... as a walk through: You can get the credential info in the same way you have done already, but store it as whole like here (or just get the idea from there about stringification and it's not mandatory to do direct write into a file). You…
-
Hi @"Omri1984", The Dropbox .NET SDK (the one most probably you are interested in) is NOT implemented in a way such thing be possible, unfortunately. Probably coder mistake. You need to "hack" DropboxRequestHandler, to be possible something like (or in the DropboxRequestHandlerOptions part, at least). If you are…
-
Hi @"dbox-arg0", Did you check the loopback variant? Does it work or not? 🧐 Good luck.
-
Hi again @"YousefElsayed", I would suggest usage of more descriptive var names to avoid different types of confusion. What actually means "DROPBOX_AUTH_KEY" here (for instance)? 🧐 Is it access token or refresh token??? 🤔 According to: @"YousefElsayed" wrote:... Auth.getDbxCredential().getRefreshToken(); ... It should be…