Beginners question: Form based authentication

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

  1. #1

    Default 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 want to have two kind of pages on my site: the ones everyone can access
    (allow users="*" in the web.config) and those that require forms based
    authentication (allow users="?" in the web config). How do I set it up so
    that the IIS knows which page uses which setting? In the Visual Basic. net
    documentation, it says it can be done page specific, but does not give an
    example.

    Thank you so much,

    Oliver


    Oliver Kharraz 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. 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...
    4. Beginners question
      I am a complete novice at Flash - but thought it a good thing to learn. I am trying to make text move from left to right. I have done this by...
    5. Form based authentication question
      I understand that in the web.config file I can have the following: <location path="MembersOnly"> <system.web> <authorization> <allow...
  3. #2

    Default Re: Beginners question: Form based authentication

    Choose whichever section will have more pages. For that section, set up the
    config file as you normally would. After the normal '</system.web>' add the
    following for each page:

    <location path="Logon.aspx">
    <system.web>
    <authorization>
    <allow users="?"/>
    </authorization>
    </system.web>
    </location>

    In there, you can specify all the <system.web> settings again for that page.

    It is better to configure this by directory, as setting up a <location> for
    a number of pages can be difficult to maintain, vs. one web.config file per
    subdirectory.

    --
    Eric Marvets
    Principal Consultant

    the bang project

    <shameless self promotion>

    Email [email]sales@bangproject.com[/email] for Information on Our Architecture and
    Mentoring Services

    </shameless self promotion>


    Eric Marvets Guest

  4. #3

    Default Re: Beginners question: Form based authentication

    Works perfectly!

    Thank you,

    Oliver

    "Eric Marvets" <ericm@bangproject.com> wrote in message
    news:uP%23NMmOQEHA.3988@tk2msftngp13.phx.gbl...
    > Choose whichever section will have more pages. For that section, set up
    the
    > config file as you normally would. After the normal '</system.web>' add
    the
    > following for each page:
    >
    > <location path="Logon.aspx">
    > <system.web>
    > <authorization>
    > <allow users="?"/>
    > </authorization>
    > </system.web>
    > </location>
    >
    > In there, you can specify all the <system.web> settings again for that
    page.
    >
    > It is better to configure this by directory, as setting up a <location>
    for
    > a number of pages can be difficult to maintain, vs. one web.config file
    per
    > subdirectory.
    >
    > --
    > Eric Marvets
    > Principal Consultant
    >
    > the bang project
    >
    > <shameless self promotion>
    >
    > Email [email]sales@bangproject.com[/email] for Information on Our Architecture and
    > Mentoring Services
    >
    > </shameless self promotion>
    >
    >

    Oliver Kharraz 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