I have a netcore3.1 app that uses the following for authentication:
services .AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme) .Ad