TechSapphire Sunday, 2024-12-22, 10:48 AM
Site menu
Login form
News
Play Games
  • Deep Freeze
  • Ice Slide
  • Gyroball
  • Fat Fish
  • Bush Royal Rampage
  • Main » 2012 » August » 18 » ASP.NET Security Lecture 1
    11:09 PM
    ASP.NET Security Lecture 1

    ASP.NET Security Lecture 1
    Authentication: Checks user identity
    Authorization: Check Permissions
     4 type of security:
    1. Windows Authentication
    2. Forms Authentication: Can be customized
    3. Passport Authentication
    4. None
    Web.config

    <!--
      For more information on how to configure your ASP.NET application, please visit
      http://go.microsoft.com/fwlink/?LinkId=169433
      -->
    <configuration>
        <system.web>
            <compilation debug="true" targetFramework="4.0"/>
            <authentication mode="Forms">
                <forms name="abc" defaultUrl="Default.aspx" loginUrl="Login.aspx">
                    <credentials passwordFormat="Clear">
                        <user name="admin" password="ad"/>
                        <user name="admin1" password="ad1"/>
                        <user name="admin2" password="ad2"/>
                    </credentials>
                </forms>
            </authentication>
        </system.web>
        <location path="Default4.aspx">
            <system.web>
                <authorization>
                    <allow users="admin"/>
                    <deny users="*"/>
                </authorization>
            </system.web>
        </location>
        <location path="Default2.aspx">
            <system.web>
                <authorization>
                    <allow users="admin1"/>
                    <deny users="*"/>
                </authorization>
            </system.web>
        </location>
        <location path="Default3.aspx">
            <system.web>
                <authorization>
                    <allow users="admin2"/>
                    <deny users="*"/>
                </authorization>
            </system.web>
        </location>
    </configuration>

    Category: Programming | Views: 2419 | Added by: Admin | Tags: Password, ASP, ASP.NET, Security, username, Web.config | Rating: 0.0/0
    Total comments: 2
    2 Arabser  
    0
    Imagine being a diplomat from aneohtr country visiting Greece to discuss important issues. The willingness to give up everything so fast of your counterparts would have exceeded your wildest expectations. Looking at out political spectrum where parties barely touch the importance and most importantly the implementation of a national policy, if XA didn t exist we would have to fabricate it. We need a nationalistic voice in the parliament.

    1 sunglasses and gingrich  
    0
    ISI
    xrpeixun

    Only registered users can add comments.
    [ Registration | Login ]
    Categories
    Programming [27]
    Tips for programming
    Security [2]
    Security Tips
    Google [1]
    Use google faster then ever you use
    Project [14]
    HTML [2]
    Electronics [0]
    Data Structure [0]
    Database [16]
    SQL SERVER
    SSRS [1]
    Sql Server Reporting Services
    Copyright MyCorp © 2024