From a344684d062ace8691185633a8c233d3e9592cf3 Mon Sep 17 00:00:00 2001 From: Troy Dai Date: Fri, 5 Aug 2016 15:27:37 -0700 Subject: [PATCH] Use HandleAuthenticateOnceSafeAsync in Cookie auth --- .../CookieAuthenticationHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.AspNetCore.Authentication.Cookies/CookieAuthenticationHandler.cs b/src/Microsoft.AspNetCore.Authentication.Cookies/CookieAuthenticationHandler.cs index 302010429b..9a26667aca 100644 --- a/src/Microsoft.AspNetCore.Authentication.Cookies/CookieAuthenticationHandler.cs +++ b/src/Microsoft.AspNetCore.Authentication.Cookies/CookieAuthenticationHandler.cs @@ -165,7 +165,7 @@ namespace Microsoft.AspNetCore.Authentication.Cookies } // REVIEW: Should this check if there was an error, and then if that error was already handled?? - var ticket = (await HandleAuthenticateOnceAsync())?.Ticket; + var ticket = (await HandleAuthenticateOnceSafeAsync())?.Ticket; if (ticket != null) { if (_refreshIssuedUtc.HasValue)