Basic authentication in ASP.NET MVC 5

前端 未结 7 1889
执念已碎
执念已碎 2020-12-07 13:58

What steps must be done to implement basic authentication in ASP.NET MVC 5?

I have read that OWIN does not support cookieless authentication, so is basic authenticat

7条回答
  •  北海茫月
    2020-12-07 14:32

    You can do this with a custom attribute. There is an implementation of a custom attribute that supports base authentication in the open source project SimpleSecurity, which you can download here. There is a reference application to demonstrate how it is used. It was originally developed to work with SimpleMembership in MVC 4 and has been recently ported to use ASP.NET Identity in MVC 5.

提交回复
热议问题