Minor fixes in RemoteAuthenticationHandler and FacebookHandler
This commit is contained in:
parent
1c17bddc02
commit
0d216d726a
|
|
@ -38,7 +38,7 @@ namespace Microsoft.AspNetCore.Authentication.Facebook
|
|||
var response = await Backchannel.GetAsync(endpoint, Context.RequestAborted);
|
||||
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());
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ namespace Microsoft.AspNetCore.Authentication
|
|||
try
|
||||
{
|
||||
var authResult = await HandleRemoteAuthenticateAsync();
|
||||
if (authResult != null && authResult.Skipped == true)
|
||||
if (authResult != null && authResult.Skipped)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue