From b3f202f80114144c6ca6565bbdc0b3c23867483d Mon Sep 17 00:00:00 2001 From: Sinan Date: Sun, 18 Dec 2016 23:16:50 -0500 Subject: [PATCH] Modify OAuthHandler.cs Modified in response to this issue : https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers/issues/126 --- src/Microsoft.AspNetCore.Authentication.OAuth/OAuthHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}