OktaASP middleware not registering HttpContext Identity - Infinite Loop

Anyone who gets this issue with the Cookie not getting set in Forms authentication, the resolution was to override the default AutheticationType in the CookieAuthenticationOptions in the StartUp:

app.UseCookieAuthentication(new CookieAuthenticationOptions() {AuthenticationType = “Cookies”, CookieManager = new SystemWebCookieManager() });