You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
Do OAuth2 with Dropbox Core API using gtm-oauth2
What is the expected output? What do you see instead?
Expect: get access token back
Actual: get nil for the access token
What version of the product are you using? On what operating system?
latest
Please provide any additional information below.
GTMOAuth2Authentication.m in
- (void)tokenFetcher:(GTMOAuth2Fetcher *)fetcher
finishedWithData:(NSData *)data
error:(NSError *)error {
determines if the response is JSON when a response's Content-Type is
"application/json"
some services, like dropbox, are returning JSON and setting Content-Type to
"text/javascript". When that happens gtm-oauth doesn't parse the response
properly, succeeding but not passing the access token along.
The dart team ran into the same snag and fixed their stuff:
https://code.google.com/p/dart/issues/detail?id=17067
Original issue reported on code.google.com by [email protected] on 21 Feb 2015 at 7:48
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 21 Feb 2015 at 7:48The text was updated successfully, but these errors were encountered: