cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know what we learned at IBC? Check out our learnings on media, remote working and more right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Script errors using oauth in WebBrowser control in C#

Script errors using oauth in WebBrowser control in C#

cspro
Explorer | Level 4
Go to solution

We implemented oauth in a C# WPF application following this blog post:

 

https://blogs.dropbox.com/developers/2014/04/dropbox-authorization-in-a-windows-forms-app/

 

On our test systems it is working fine but some customers are reporting script errors on https://www.dropbox.com/1/oauth2/authorize/...

 

"Object doesn't support this property or method" Line 122 Char 9.

 

They also get an error from https://cfl.dropboxstatic.com/static/compiled/js/alameda_bundle/alameda_bundle.min-vflln0b5A.js. "Expected identifier, string or number" Line 1 Char 7283

 

 

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution
Thanks! Issues like this can be expected with IE 8, as the Dropbox site doesn't support it. Having users upgrade their browser is the right solution in this case.

And no, unfortunately I don't have an example like the blog post you linked to for doing the same with the default browser, but I'll send this along as a request to the team to write one.

View solution in original post

3 Replies 3

Greg-DB
Dropbox Staff
Go to solution
What version(s) of Internet Explorer are driving the WebBrowser when you see this? By the way, we now recommend using the system's default browser, in order to support users using the Google Sign In flow to sign in to Dropbox, under Google's new policy disallowing web views for their authorization flow ( https://developers.googleblog.com/2016/08/modernizing-oauth-interactions-in-native-apps.html ).

cspro
Explorer | Level 4
Go to solution

Thanks for the quick response. In one case it was IE version 8 and was just informed that the problem went away when he updgraded to IE 11.  Don't have version info for the others but it is likely they are using older versions of IE as well.

 

I don't suppose you have an example of doing oauth with the default browser instead of the embedded browser? Not sure how to get the token back from the response in that case. That blog post on using the embedded browser was really useful. An updated version that uses the default browser would be fantastic.

Greg-DB
Dropbox Staff
Go to solution
Thanks! Issues like this can be expected with IE 8, as the Dropbox site doesn't support it. Having users upgrade their browser is the right solution in this case.

And no, unfortunately I don't have an example like the blog post you linked to for doing the same with the default browser, but I'll send this along as a request to the team to write one.
Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    cspro Explorer | Level 4
What do Dropbox user levels mean?