You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Asp.Net Identity on .Net Framework 4.8 and MVC 5. I'm using HttpContext to track contextual information about a request. However Asp.Net Identity uses ConfigureAwait(false), which means that HttpContext.Current becomes null in callbacks. For example when subclassing PortalSignInManager, HttpContext.Current is null inside SignInAsync.
I suppose WithCurrentCulture was introduced when Asp.Net Core didn't flow HttpContext. However that's no longer the case for newer versions, and this workaround is breaking my application.
The text was updated successfully, but these errors were encountered:
I'm using Asp.Net Identity on .Net Framework 4.8 and MVC 5. I'm using HttpContext to track contextual information about a request. However Asp.Net Identity uses
ConfigureAwait(false)
, which means thatHttpContext.Current
becomesnull
in callbacks. For example when subclassingPortalSignInManager
,HttpContext.Current
isnull
insideSignInAsync
.I suppose
WithCurrentCulture
was introduced when Asp.Net Core didn't flowHttpContext
. However that's no longer the case for newer versions, and this workaround is breaking my application.The text was updated successfully, but these errors were encountered: