Skip to content

Commit

Permalink
Fix the Instagram provider to correctly process the userinfo response
Browse files Browse the repository at this point in the history
  • Loading branch information
kinosang authored and kevinchalet committed Mar 7, 2018
1 parent d7dd98d commit f5a5364
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected override async Task<AuthenticationTicket> CreateTicketAsync([NotNull]
throw new HttpRequestException("An error occurred while retrieving the user profile.");
}

var payload = JObject.Parse(await response.Content.ReadAsStringAsync());
var payload = JObject.Parse(await response.Content.ReadAsStringAsync()).Value<JObject>("data");

var principal = new ClaimsPrincipal(identity);
var context = new OAuthCreatingTicketContext(principal, properties, Context, Scheme, Options, Backchannel, tokens, payload);
Expand Down

0 comments on commit f5a5364

Please sign in to comment.