udhos / goauth2

Automatically exported from code.google.com/p/goauth2
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Problem with Dropbox Oauth2 #29

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

  1. Setup dropbox app console: https://www.dropbox.com/developers/apps 
  2. Fill in oauth.Config
  3. trasnport.AuthCodeURL() returns url with empty params: access_type and approval_prompt.  This causes dropbox API server to reject /authorize request.
  4. transport.Exchange passes in empty scope param.  This causes dropbox API server to reject /token request.

What is the expected output? What do you see instead?

  Dropbox oauth2 flow should succeed.

What version of the product are you using? On what operating system?

  I'm running go version 1.2 on Mac OSX

Please provide any additional information below.

  I've attached a patch to fix this problem.  Are you open to this fix?

Original issue reported on code.google.com by jim.d...@gmail.com on 17 Jan 2014 at 9:47

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by bradfitz@golang.org on 10 Aug 2014 at 5:59