ptallett Helpful | Level 6

Comments

  • I just checked and both of the following append the slash to the redirect URL: Uri redirect = new Uri("https://localhost"); var authUri = DropboxOAuth2Helper.GetAuthorizeUri(OAuthResponseType.Token, appKey, redirect, state, false, false); var authUri = DropboxOAuth2Helper.GetAuthorizeUri(OAuthResponseType.Token, appKey,…
  • Thanks for the quick response, I indeed clicked on the URL and got an error message which was how I figured it out. The trailing slash was being added by the Uri class I think - I was not putting it in but it was getting sent which was confusing and without an error message, hard to isolate. Cheers, Paul
  • I solved it! The redirect URL has to be registered with a trailing slash. Thanks for your help. I'm not clear how long my token will last and how I refresh it, could you explain. Love your API by the way, was a breeze to integrate into my app (except for this auth issue). Suggestions for improvement: - things like…
  • I suspect you could repro the error by creating a blank UWP app and adding the two lines in the original post with your appKey and appSecret. Cheers, Paul
  • I've turned on logging and get this in the event log (keys changed to protect the innocent): AuthHost encountered a navigation error at URL: <https://www.dropbox.com/1/oauth2/authorize?response_type=token&client_id=nfruabcdefg6g64&redirect_uri=http%3A%2F%2Flocalhost%2F&state=ufqdpabcdefgtmy&force_reapprove=true> with…