Include user lists for Form authentication - ASP.NET Security

Q.  Where do we include the user lists for Form authentication?
- Published on 16 Jun 15

a. < credential>
b. < authorization>
c. < Identity>
d. < authentication>

ANSWER: < credential>
 

    Discussion

  • Raj Singh   -Posted on 18 Sep 15
    In credential section we can include the user lists for Form authentication.
    Example: Credentials for three user accounts are stored in the configuration file.
    < configuration>
    < system.web>
    < authentication mode="Forms">
    < forms loginUrl="/login.aspx">
    < credentials passwordFormat = "Clear">
    < user
    name="Careerride1"
    password="A"/>
    < user
    name=" Careerride2"
    password="B"/>
    < user
    name=" Careerride3"
    password="C"/>
    < /credentials>
    < /forms>
    < /authentication>
    < /system.web>
    < /configuration>

Post your comment / Share knowledge


Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)