Comments
-
Hi @"Greg-DB" , Now that I have my hands on an expired token again (and a bit of time) I'm circling back to this issue, as I'm now seeing the same results (and I want to get all my expired access token catching handled before I turn back to the code changes I still need to make for refresh tokens). So, as before I'm using…
-
Hi @"Greg-DB" , Thanks for your polite-as-always explanation. 🙂 That wasn't clear to me from the doco that the authorisation URL is different every time (since it's always been the same with non-PKCE), so might be worth highlighting that in the doco for others like me who are converting. I got it working now with an access…
-
I'm using PKCE so that I don't have to send the secret, and is what the doco says to do.
-
Ah ok. Yes I didn't see that because doco says "Example: Auth URL for code flow with offline token access type", which is what I want - offline token. Needs a qualifier added "except for PKCE". So does the PKCE URL change each time, or I only need to generate it once?
-
Ok, used the wrong name - it's the authorisation URL, not the redirect URL - but it's still the same URL every time. The link you provided says the same thing - https://www.dropbox.com/oauth2/authorize?client_id=<APP_KEY>&response_type=code - so I still don't know why it's not working, given that's exactly the URL I've…
-
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" So the URL…
-
>The first step is constructing and launching Dropbox authentication And the doco states that step is optional, as I already said. I therefore don't know what code is needed to get this working when one isn't constructing and launching a redirect. If you're getting the code directly from a browser as the actual first step,…
-
Hi, > As can be seen from your post, you are constructing pKCEFlow object anew after you have got the code Yes, that's right. 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…
-
Thank you @"Greg-DB" ! Glad we worked that out in the end. Yeah, wasn't clear to me that it was 2 different methods of the same name (since I was skipping all those previous steps in my process and just picking up at ProcessCodeFlowAsync. The latter instance is the helper I was looking for). No disrespect to you, but I'll…
-
Hi again @"Greg-DB" , I've been reading through the doco, and I've found what's confusing me... In the examples you've given, a RedirectURI is being used, but I'm not using that - I'm not launching the browser from the app, I'm just going directly to the authorise link from a shortcut in the browser and then copying the…
-
Hi @"Greg-DB" , Thanks for the correct link. I'll read through that shortly, but first the documentation link that you've given in your reply here... >The .NET SDK documentation is currently available here. Click the "API Documentation" link is a DIFFERENT link to the "Documentation" link which is on the first page itself,…
-
Hey Greg, I've ALMOST got this one licked. I got down to "too many write operations", and I single-streamed UploadAsync and my batch writes through a lock file, and was working, working, working, then bam, all of a sudden got another couple of "too many write operations", and I'm like "Huh? How can that be when I'm…
-
Oh ok. I didn't realise it went deeper than "IsComplete"! Thanks! Have a good Easter Greg.
-
Hi Greg, > check each UploadSessionFinishBatchResultEntry in UploadSessionFinishBatchResult.Entries, to see whether each one succeeded or failed, and why Where do I get the UploadSessionFinishBatchResult from? What do I call? I don't see it being returned by anything I'm calling, and can't see any mention of what to call…
-
Hi Greg, There are no concurrent operations - I'm running this standalone (I'm still just testing it), so it's definitely not that. > Also, make sure StringToStream(file.Content) is returning the data you expect it to No, I hadn't checked that actually, so that's one thing I can look at. > you should check…
-
Hi Brad @"Brogers", Thanks for your reply. The message with the result of the call comes up after, so there is no exception before the 1st call, and an exception before the 2nd message (which for some reason is generating 2 exception messages). Some time ago (i.e. back when I was first writing my Dropbox library) the…
-
Hi @"Scott-DB" @"Scott-DB" wrote:Hi Donald, hopping on the thread here. We did have some hiccups last night with the file saving system, and it's been resolved. Could you try again and let us know how it goes? Thanks! Yep, working again now - thank you! 🙂 Now to get back to working on the original issue...
-
Hi Greg, I've not changed any code at all since I was last working on this (was about to resume working on it), and now nothing at all is downloading - are you aware of any server issues with SaveFromURLAsync? Everything else is working (e.g. WriteFileAsync). There was some maintenance done just over 2 hours ago, which may…
-
Hi Greg, 🙂 "note that the thread you linked to was discussing the Java SDK" Oh ok. No, I didn't notice that. No wonder there was some confusion. 😂 "the complete result (IsComplete)" Yeah I saw that through Intellisense and tried that to begin with, but as I said I was getting false returned for everything, even the ones…
-
Hi Greg, Sorry didn't reply before. No, I didn't actually get it working yet with an expired token - my code was working because I had an unexpired token now. I still haven't had the code around an expired token work yet, but since I had an unexpired token I've had to move onto more urgent things. I'll be coming back to…
-
So tonight my screens went black all of a sudden, but computer didn't crash, so I did a hot-restart - Visual Studio was open at the time. When I re-opened everything and tried my app again to see if I'd lost anything (don't remember where I last saved) I was getting a response to my token-check! This brings up a few…
-
Hi Greg, Thanks for the extra info, but as per earlier post I'm still unable to get an exception using any of those methods. In the earlier case, I had been testing it within a C#/.NET property change. I thought perhaps it might be a limitation with properties, so I wrote the code as a separate method which I then call at…
-
I also tried var result=DxClient.Users.GetCurrentAccountAsync() in the try/catch - still no exception.
-
I'm having issues with trying to catch this exception. As suggested in another post, I'm using GetCurrentAccountAsync to test if the token is valid - I've put that into a try/catch, and the catch doesn't run! THEN in later calls I start getting the expired token exceptions. i.e. GetCurrentAccountAsync doesn't seem to care…
-
Hi @"Greg-DB" Just an update and a request... It did turn out that the issue was being unauthorised, so I've got a bunch of extra code in there now to deal with that scenario (some changes I'd made had meant I was hitting some code earlier than previously and thus running into unauthorised), so the problem is now solved…
-
Hi Greg, DxClient is my global Dropbox client, and definitely not null, but in running my program again to get a screenshot of that for you I did find that it's not authorised! Not sure how that came to be, but I'll chase that down now, as that is probably why I'm getting this message (though not sure why I'm not getting…
-
Hi Greg, The call stack just shows that the method is being called and is at line 305. See screenshot.
-
Hi Greg, 🙂 Thanks for your reply. I read through it and thought "nope not that, nope not that, nope not that. Hmmm, now what??". Note that this is a re-write of something I wrote before (to improve performance and enhance it). I then realised "this worked before, what have I changed?". Here was the thought process as it…
-
"Using a web view for the app authorization flow is not officially supported, so I can't recommend doing so" Ok, I understand that. I'm asking if you can use ParseTokenFragment with a native browser (as per your recommendation), and if so what would the code to do so look like?
-
Hey Greg, Ok, I've gone back and revisited the code I never got working, which was based on SimpleTest. Where I got stuck was stuff around index.html in HandleOAuth2Redirect. At the time you said it wasn't really necessary (just a page that is displayed to the user, which I don't need), and I think I have an idea now how…