Where is app.UseOpenIdConnectAuthentication() and OpenIdConnectMiddleware in ASP.NET Core 3?

Context I am trying to migrate an application which uses app.UseOpenIdConnectAuthentication() but this extension method not found in package Microsoft.AspNetCore.Authentication.OpenIdConnect The actual source of this extension method uses the class OpenIdConnectMiddleware which also seems to be gone. Question How can I migrate this application?

Asp.net Button trigger panel control in formview insertitemtemplate

I got two buttons outside of formview. The formview insertitemtemplate contains two panel controls. How to press button1 and panel1 visiable panel2 hide, press button2 and panel2 visiable panel1 hide. thanks! protected void BtnInsert_Command(object sender, EventArgs e) { FormView1.ChangeMode(FormViewMode.Insert); if (FormView1.CurrentMode == FormViewMode.Insert) { Panel panel3 = (Panel)FormView1.FindControlRecursive(“Panel3”); Panel panel4 = (Panel)FormView1.FindControlRecursive(“Panel4”); panel3.Visible = false;…

Runtime exception when uploading file using vue.js and asp.net web api?

I’ve got an exception when I tried to upload an image file with something like this “No MediaTypeFormatter is available to read an object of type ‘HttpFileCollection’ from content with media type ‘multipart/form-data’.” I didn’t use submit button, I just want to upload the file asynchronously without any postback. Here is my code: HTML: <input…

Is there a built in way of using snake case as the naming policy for JSON in ASP.NET Core 3?

I managed to get it working using the following code: .AddNewtonsoftJson(options => { options.SerializerSettings.ContractResolver = new DefaultContractResolver { NamingStrategy = new SnakeCaseNamingStrategy() }; }); However this makes MVC use Newtonsoft rather than System.Text.JSON which is faster, async and built in. Looking at the naming policy options in System.Text.JSON I could only find CamelCase. Is there…

Is there a built in way of using snake case as the naming policy for JSON in ASP.NET Core 3?

I managed to get it working using the following code: .AddNewtonsoftJson(options => { options.SerializerSettings.ContractResolver = new DefaultContractResolver { NamingStrategy = new SnakeCaseNamingStrategy() }; }); However this makes MVC use Newtonsoft rather than System.Text.JSON which is faster, async and built in. Looking at the naming policy options in System.Text.JSON I could only find CamelCase. Is there…

When using ASP.NET core Identity, it is better to extend the User class or write separate entities that relate to it [on hold]

I want to use the Identity system provided by ASP.NET core. Most tutorials I read extend the User class by adding custom properties like the following: public class ApplicationUser : IdentityUser { public string FirstName { get; set; } public string LastName { get; set; } // etc… } This seems fine when you only…