diff --git a/src/Microsoft.AspNetCore.Authentication.OAuth/OAuthHandler.cs b/src/Microsoft.AspNetCore.Authentication.OAuth/OAuthHandler.cs index 1c5143842..80edd1ace 100644 --- a/src/Microsoft.AspNetCore.Authentication.OAuth/OAuthHandler.cs +++ b/src/Microsoft.AspNetCore.Authentication.OAuth/OAuthHandler.cs @@ -127,7 +127,7 @@ protected override async Task HandleRemoteAuthenticateAsync( } else { - return AuthenticateResult.Fail("Failed to retrieve user information from remote server."); + null; } } @@ -224,4 +224,4 @@ protected virtual string FormatScope() return string.Join(" ", Options.Scope); } } -} \ No newline at end of file +}