rafek/SimpleSocialAuth — Issue #1: Google Picture Url
Author: benfoster
Created: 2012-02-19 13:30:29+00:00
State: open

As per http://code.google.com/apis/accounts/docs/OAuth2Login.html#userinfocall the "picture" field is not included in the response if a picture does not exist.

The current GoogleHandler will therefore throw if a picture doesn't exist.

return
new BasicUserData
{
UserId = jsonObject["id"].ToString(),
UserName = jsonObject["name"].ToString(),
PictureUrl = jsonObject["picture"].ToString()
};