Membership, authorization, security in MVC

Source: Internet
Author: User
Tags oauth oauth provider

    • Sign in with the authorize feature

Authorize is the default authorization filter for ASP. NET MVC, which can be used to restrict user access to action methods.

      • Protection Controller Operation
        •   
      • Authorize features in Forms authentication and AccountController controller usage
        • The Internet Application template for ASP. NET MVC includes a basic accountcontroller that supports account management for ASP. NET Membership and OAuth authentication.
      • Windows Authentication in the Intranet application template

Using Windows authentication, you can handle registration and LOG on operations outside of a WEB application, which does not require accountcontroller and its associated models and views.

      • Security for the entire controller

From an anonymous shopping cart to an excessive settlement requiring registration, you can meet the requirements for authorization by adding the authorize feature on the controller Checkoutcontroller.

      • Secure your entire application with global authorization filters

    • Require role members to use the Autorize attribute
      • Extending roles and Members
    • External login via OAuth and OpenID
      • Registering an external login provider
      • Configure the Open provider
      • Configuring the OAuth Provider
      • Security for external logins
    • Security vectors in WEB applications
      • Threats: Cross-site scripting
      • Threats: Cross-site request forgery
      • Threats: Cookie Theft
      • Threats: Repeating commits
      • Threats: Open redirection
    • Appropriate error reporting and stack traces
      •   Using Configuration transformations
      • Using the Retail deployment configuration in a production environment
      • Using a dedicated error logging system
    • Security Review and useful resources

Membership, authorization, security in MVC

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.