Skip to content

Google Picture Url #1

Description

@benfoster

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()
      };

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions