We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Originally opened as dart-lang/sdk#17067
This issue was originally filed by orig...@gmail.com
https://codereview.chromium.org/177093006
Some api providers like dropbox (for example /token endpoint) set content-type response to text/javascript so _validate call fail.
Unhandled exception: FormatException: Invalid OAuth response for "https://api.dropbox.com/1/oauth2/token": content-type was "text/javascript", expected "application/json".
Response is {"access_token": "TOKEN", "token_type": "bearer", "uid": "UID"}
The text was updated successfully, but these errors were encountered:
<img src="https://avatars.githubusercontent.com/u/5479?v=3" align="left" width="48" height="48"hspace="10"> Comment by sethladd
cc @nex3. Added Area-Pkg, Pkg-OAuth, Triaged labels.
Sorry, something went wrong.
<img src="https://avatars.githubusercontent.com/u/188?v=3" align="left" width="48" height="48"hspace="10"> Comment by nex3
It's frustrating that Dropbox doesn't follow the spec, but I suppose there's no benefit to being persnickety about it in the client.
Fixed by dart-lang/sdk@a5cc4f6.
Added Fixed label.
Removed Pkg-OAuth label. Added Pkg-OAuth2 label.
No branches or pull requests
Originally opened as dart-lang/sdk#17067
This issue was originally filed by orig...@gmail.com
https://codereview.chromium.org/177093006
Some api providers like dropbox (for example /token endpoint) set content-type response to text/javascript so _validate call fail.
Unhandled exception:
FormatException: Invalid OAuth response for "https://api.dropbox.com/1/oauth2/token": content-type was "text/javascript", expected "application/json".
Response is {"access_token": "TOKEN", "token_type": "bearer", "uid": "UID"}
The text was updated successfully, but these errors were encountered: