IApplicationBuilder does not contain a definition for UseIdentity
Documentation says that as of ASP.NET Core 2.2, UseIdentity
is now obsolete and that UseAuthentication
should be used instead
This method is obsolete and will be removed in a future version. The recommended alternative is
UseAuthentication(IApplicationBuilder)
https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.builder.builderextensions.useidentity?view=aspnetcore-2.2