Form based authentication question

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

  1. #1

    Default Form based authentication question

    I understand that in the web.config file I can have the following:
    <location path="MembersOnly">
    <system.web>
    <authorization>
    <allow users="myaccount" />
    <deny users="*" />
    </authorization>
    </system.web>
    </location>
    My question is, how is the user name myaccount checked against the
    web.config file? Is it done with the
    FormsAuthentication.RedirectFromLoginPage Method? For example,
    FormsAuthentication.RedirectFromLoginPage("myaccou nt", false)

    Thanks
    M2Web Guest

  2. Similar Questions and Discussions

    1. Newbee question; form authentication
      Hello all, I have a problem with retrieving roles. In the login form, I do the following things; - Retrieve roles (string, format like...
    2. Access shared drive using FORM based authentication
      Hi All, I am using FORM BASED authentication for my web based application. It's running under ASPNET account on win2k server and NetworkService...
    3. Populate form values based on previous same form fields
      This message is cross posted in alt.comp.lang.php & comp.lang.javascript I have a form for a user to input an establishment's hours and what time...
    4. Beginners question: Form based authentication
      Hello, the following question may be trivial, but after scrolling documentations on my screen for hours I'd absolutely appreciate your help: I...
    5. authenticate win32 form client with form based authentication web services
      (Type your message here) -------------------------------- From: kitchai yong Hi, Can you tell me how i authenticate the win32 form client...
  3. #2

    Default Re: Form based authentication question

    Have done mine through a custom component talking to SQL Server database
    table containing usernames and encrypted passwords.

    If you're using the config file, I think you use the
    FormAuthentication.Authenticate method. The RedirectFromLoginPage method
    writes out the forms authentication cookie containing your username and
    redirects you to the page you originally wanted to navigate to.

    Regards
    Colin

    "M2Web" <admin@msquaredweb.com> wrote in message
    news:944319dc.0307090508.6db46430@posting.google.c om...
    > I understand that in the web.config file I can have the following:
    > <location path="MembersOnly">
    > <system.web>
    > <authorization>
    > <allow users="myaccount" />
    > <deny users="*" />
    > </authorization>
    > </system.web>
    > </location>
    > My question is, how is the user name myaccount checked against the
    > web.config file? Is it done with the
    > FormsAuthentication.RedirectFromLoginPage Method? For example,
    > FormsAuthentication.RedirectFromLoginPage("myaccou nt", false)
    >
    > Thanks

    Colin Turner 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