google / gdata-python-client

443 stars 227 forks source link

client.py get_oauth_token() raises exception on 301 response #43

Open penguin-wrangler opened 8 years ago

penguin-wrangler commented 8 years ago

https://github.com/google/gdata-python-client/blob/master/src/gdata/client.py#L577

Google is returning a 301 response (Moved Temporarily) aka Redirect. The get_oauth_token code treats anything other than 200 as an error, and does not follow the redirect, thus authentication is broken.