Forms Security Authentication.

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Forms Security Authentication.

    Hi I have done all the plumbing for a Forms Authentication system.

    My user logs in, I chek password with ADO.NET to a database with 2
    fields.

    IE
    enteredUsername = dbUsername
    enteredPassword = dbPassword

    so I get say

    bolAutheticated = true

    How do I manually authenticate this user for example

    If bolAutheticated Then
    FormsAuthentication.???????
    Else
    lblStatus.text = "Login Failed"
    End IF

    I have seen demos with Salt and Password etc, but I have an established
    DB with no Encryption, we do not need it. I simply need DOT net to
    authentiucate this user so they can access the resatricted directory I
    have setup in Web.Config?

    Please help!

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Daren Hawes Guest

  2. Similar Questions and Discussions

    1. Some simple questions, I assume, on security (Forms authentication)
      Hi. I just began reading on security (Forms authentication). I have the following two questions: 1. Is there a way to specify the expiration date...
    2. Applying security at folder level using forms authentication
      Hi I have two folders in the .net application,one can be accessed by everyone adn the other needs to be accessed only through submitting login and...
    3. Accessing htm files without authentication (forms authentication)
      I have application with forms authentication. All works fine. When user opens .aspx file gets login form, login and then get the .aspx page. But...
    4. ASP.Net Forms authentication with basic authentication popup
      Relatively new to ASP.Net but have a strange problem. My site uses forms authentication for a large administration section however after the user...
    5. Forms authentication then redirection to a secure web with NT authentication?
      Hi, I want to allow access to particular secured intranet web sites. These intranet are stored in sharepoint (2003 version) Actually I've...
  3. #2

    Default Re: Forms Security Authentication.

    This is kind of confusing when you first see it, because you don't really see methods in Forms Authentication like "FormsAuthentication.ThisIsAValidLogin()". How FA works, you need to set a cookie that will validate the user, there are three ways do do this: Look at the methods RedirectFromLoginPage and SetAuthCookie, either of those two methods will set this cookie and authenticate the user. Also you can do this whole process manually as well, but you probably don't need go that far with it yet.

    --Michael

    "Daren Hawes" <newsgroups@webdesignmagic.com.au> wrote in message news:ecdAj8YhEHA.2052@tk2msftngp13.phx.gbl...
    > Hi I have done all the plumbing for a Forms Authentication system.
    >
    > My user logs in, I chek password with ADO.NET to a database with 2
    > fields.
    >
    > IE
    > enteredUsername = dbUsername
    > enteredPassword = dbPassword
    >
    > so I get say
    >
    > bolAutheticated = true
    >
    > How do I manually authenticate this user for example
    >
    > If bolAutheticated Then
    > FormsAuthentication.???????
    > Else
    > lblStatus.text = "Login Failed"
    > End IF
    >
    > I have seen demos with Salt and Password etc, but I have an established
    > DB with no Encryption, we do not need it. I simply need DOT net to
    > authentiucate this user so they can access the resatricted directory I
    > have setup in Web.Config?
    >
    > Please help!
    >
    > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    > Don't just participate in USENET...get rewarded for it!
    Raterus Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139