titarenko / OAuth2

OAuth2 client implementation for .NET
412 stars 154 forks source link

Adding parameter to UserInfoServiceEndPoint #76

Closed ProNotion closed 8 years ago

ProNotion commented 9 years ago

I am trying to get a Yahoo client working and they make you jump through hoops to get at the profile.

protected override Endpoint UserInfoServiceEndpoint
{
  get
  {
    return new Endpoint()
    {
      BaseUri = "https://social.yahooapis.com",
      Resource = "/v1/user/{guid}/profile/usercard"
    };
  }
}

The value I need for {guid} should be returned in the Request token response but how can I can get that value at this point? I think maybe I've been looking at this too long?

Thanks, Simon

niemyjski commented 8 years ago

I think you can get this by overriding ParseUserInfo method and parsing it out. Were you able to do this?