We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
leriano7
8 years agoExplorer | Level 3
oAuth 2.0 has stopped working since electron (Chromium client)
oAuth 2.0 has stopped working from electron client v1.8.4 (Chromium client, in Windows and Mac), for direct Dropbox accounts. Right now it only works with Google accounts. Are you experiencing troubl...
Greg-DB
Dropbox Community Moderator
8 years agoThanks for the additional information!
I see from your post that you're processing the OAuth app authorization flow in a web view, not the system browser itself. Per the Dropbox /oauth2/authorize documentation, we do not support processing the OAuth app authorization flow in web views. (This decision was made in order to support the Google Sign In flow for signing in to Dropbox. That may still work at the moment, but Google has deprecated it, so it will stop working in the future.)
Further, you mentioned that it is working in Chrome, so it appears to be something specific to the Electron web view, so I'm afraid we won't be able to offer help with that anyway, as that's not supported.
That being the case, you should update your app to process the OAuth app authorization flow in the system browser instead.
TwinBlade
8 years agoHelpful | Level 5
Hey Greg,
Since yesterday morning I have experienced the same issue as leriano. I am using the .NET SDK and haven't changed any code (prior yesterday - everything was working), but the OAuth flow continues forever... When I click "Approve" it starts loading and then ..nothing happens.
On breaking I reach this call:
var response = await DropboxOAuth2Helper.ProcessCodeFlowAsync(
code,
Global.AppKey,
Global.AppSecret,
RedirectUri);It doens't proceed to returning response and I get no errors
Using Google Chrome Version 69.0.3497.100
- leriano78 years agoExplorer | Level 3
Hello TwinBlade!
Does it reach your redirect uri???
In Google Chrome 70.0.3538.77 for Mac OSX works great for me.
Thank you!- TwinBlade8 years agoHelpful | Level 5
Hello Leriano,
It redirects to my page, but on there is the method to exchange the code for the token, which is problematic. I updated Chrome today, but I am still having this issue.- Greg-DB8 years ago
Dropbox Community Moderator
TwinBlade Are you processing this in a web view in an Electron app? If not, it sounds like this isn't necessarilly the same as the original issue in this thread. In that case, please open a new thread with the details of the issue you're seeing. You said "the method to exchange" "is problematic". Please elaborate on that, and include any error or lacking that, explain what unexpected behavior or output it gives. Thanks!
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!