简体   繁体   中英

ASP.NET MVC 5 Custom Implementation

I was searching for a resource to learn about new ASP.NET MVC 5 Authentication Filters. Actually what I want is to know how to use Authentication Filters in real world scenarios such as using third party authentication providers (Facebook, Twitter, etc) or custom authentication providers. I searched through the internet and was unable to find something in more detail.

Can you suggest me where to find more details on this? Thanks in advance.

I've actually implemented a customer authentication in ASP.NET MVC .

The basics are simple:

  1. For each request coming to the server, you should understand whether the resource is private or public. This is done with attributes in MVC.
  2. For each private request, you should see if the HTTP request has an authentication ticket or not. It's usually a cookie.
  3. If user does have that ticket, then server the resource. Otherwise, redirect user to login page.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM