I'm attempting to connect to the Dropbox API using OAuth2. I'm using DropNet as the client library and using the Token (implicit grant) flow option. The test code (roughly the same as DropNet.Samples.WinForms) is a simple dialog with an embedded browser control to display the API login page.
The problem I'm seeing is that the API does not redirect the browser to the specified redirect URL (http://localhost). After I provide my credentials and click Allow to grant access, instead of being redirected to localhost I'm redirected to https://www.dropbox.com/1/oauth2/authorize_submit, which fails to load (error 404). There are also no query parameters on the redirected URL. I'm expecting to be redirected to localhost with query parameters containing an authorization code.
For reference the login URL is: https://www.dropbox.com/1/oauth2/authorize?response_type=token&client_id=<blah>&redirect_uri=http://localhost.
Does anyone know what I'm doing wrong? The behavior looks very similar to what's described in: Obtain OAuth2 Access Token for Dropbox Core API with Codenameone's Oauth2 Class, but there's no direct answer there.