Minor fixes in RemoteAuthenticationHandler and FacebookHandler

This commit is contained in:
Troy Dai 2016-07-26 13:58:07 -07:00
parent 1c17bddc02
commit 0d216d726a
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ namespace Microsoft.AspNetCore.Authentication.Facebook
var response = await Backchannel.GetAsync(endpoint, Context.RequestAborted); var response = await Backchannel.GetAsync(endpoint, Context.RequestAborted);
if (!response.IsSuccessStatusCode) if (!response.IsSuccessStatusCode)
{ {
throw new HttpRequestException($"Failed to retrived Facebook user information ({response.StatusCode}) Please check if the authentication information is correct and the corresponding Facebook API is enabled."); throw new HttpRequestException($"Failed to retrived Facebook user information ({response.StatusCode}) Please check if the authentication information is correct and the corresponding Facebook Graph API is enabled.");
} }
var payload = JObject.Parse(await response.Content.ReadAsStringAsync()); var payload = JObject.Parse(await response.Content.ReadAsStringAsync());

View File

@ -37,7 +37,7 @@ namespace Microsoft.AspNetCore.Authentication
try try
{ {
var authResult = await HandleRemoteAuthenticateAsync(); var authResult = await HandleRemoteAuthenticateAsync();
if (authResult != null && authResult.Skipped == true) if (authResult != null && authResult.Skipped)
{ {
return false; return false;
} }