Search code examples
asp.net-corebasic-authenticationasp.net-core-mvcasp.net-core-1.0

Basic Authentication in ASP.NET Core


Question

How can I implement Basic Authentication with Custom Membership in an ASP.NET Core web application?

Notes

  • In MVC 5 I was using the instructions in this article which requires adding a module in the WebConfig.

  • I am still deploying my new MVC Coreapplication on IIS but this approach seems not working.

  • I also do not want to use the IIS built in support for Basic authentication, since it uses Windows credentials.


Solution

  • ASP.NET Security will not include Basic Authentication middleware due to its potential insecurity and performance problems.

    If you require Basic Authentication middleware for testing purposes, then please look at https://github.com/blowdart/idunno.Authentication