Rest-ful Basic Authentication with ASP.NET MVC

后端 未结 4 1982
滥情空心
滥情空心 2021-02-01 08:14

Anyone know how this works, I\'m using the .net membership provider and just want to pull an xml list. I\'m also using the .net mvc sdk.

4条回答
  •  情话喂你
    2021-02-01 08:51

    I thought I'd add this here for anyone (like me) who isn't quite able to wrap their head around the answer the author provided here. Here's a blog post I just did describing how to accomplish this with a [CustomBasicAuthorize] attribute that can be used the same way as the [Authorize] attribute that comes with MVC: http://cacheandquery.com/blog/2011/03/customizing-asp-net-mvc-basic-authentication/

提交回复
热议问题