Turn Off security for specific pages

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

  1. #1

    Default Re: Turn Off security for specific pages

    In my case each page that needs to be secured has this entry in the
    web.config page :
    <location path="Webform1.aspx">
    <system.web>
    <authorization>
    <allow roles="ROLE1, ROLE2" />
    <deny users="*" />
    </authorization>
    </system.web>
    </location>
    <location path="Webform2.aspx">
    <system.web>
    <authorization>
    <allow roles="ROLE1, ROLE3" />
    <deny users="*" />
    </authorization>
    </system.web>
    </location>

    Then any page that is not there is not secured. So if we follow this logic,
    if forgotpassword.aspx does not have an entry in the Web.config file then
    it is not secured.


    "Emad" <iemad@hotmail.com> wrote in message
    news:%23Y$TJPvUDHA.424@TK2MSFTNGP11.phx.gbl...
    > I have an asp.net application using form authentication for security....
    I
    > have a link on the login screen that links to another forgotpassword.aspx
    > page... I want to unsecure forgotpassword.aspx so that you don't have to
    be
    > logged in to view it.... I saw this somewhere and I know that it can be
    > done in the web.config but I can't figure out where it is.
    >
    > Any help?
    >
    > Thanks
    >
    > Emad
    >
    >

    abacnet Guest

  2. Similar Questions and Discussions

    1. Client supplied QX file - how do I turn off facing pages?
      I didn't design this. Client supplied a 6 x 9 booklet in QX6 and I want to turn off facing pages so I can manually impose the book. The facing pages...
    2. Lock out specific pages?
      Hi, is it possible to lock pages from being updated with Contribute 3? Lets say you have a folder containing 6 files (index.htm, company.htm,...
    3. Authorization of specific pages
      I have my authorization in web.config set to <deny users="?" />, this is what I want because we use forms authenthentication that sets a auth...
    4. How do I link to specific pages in another PDF file?
      But clicking on the links merely opens the target file at page 1, i.e. it won't open at the chosen page within the selected file. If Mr....
    5. Can any one point me to how CLR, specific to JIT manages security?
      Hi, Are there any documented articles on how .net applies security specifically keeping JIT in view. What i assume is there will be different JIS...
  3. #2

    Default Re: Turn Off security for specific pages

    Put your "unsecured" pages in a different directory. I have my login and forgot your password pages in a subdirectory. My web.config has this in it.

    <authentication mode="Forms">


    <forms name=".cookiename" lognUrl="login/login.aspx" protectin="None" timeout="20" path="/">

    </forms>

    Michael

    "Emad" <iemad@hotmail.com> wrote in message news:%23Y$TJPvUDHA.424@TK2MSFTNGP11.phx.gbl...
    > I have an asp.net application using form authentication for security.... I
    > have a link on the login screen that links to another forgotpassword.aspx
    > page... I want to unsecure forgotpassword.aspx so that you don't have to be
    > logged in to view it.... I saw this somewhere and I know that it can be
    > done in the web.config but I can't figure out where it is.
    >
    > Any help?
    >
    > Thanks
    >
    > Emad
    >
    >

    ---
    Outgoing mail is certified Virus Free.
    Checked by AVG anti-virus system ([url]http://www.grisoft.com[/url]).
    Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003
    Michael Pearson Guest

  4. #3

    Default Re: Turn Off security for specific pages

    In my case all the Login related pages are in a completely separate project, under IIS. So they have their own directory and web.config file. If your Login files are in the same project then what about trying to put another web.config file just under the Login/ directory? Configuration files are are inherited from parent, by default. We can override them for a subdirectory.
    "Michael Pearson" <michaelp_extrajunktoremove@televox.com> wrote in message news:%23Ylw$ivUDHA.3308@tk2msftngp13.phx.gbl...
    Put your "unsecured" pages in a different directory. I have my login and forgot your password pages in a subdirectory. My web.config has this in it.

    <authentication mode="Forms">


    <forms name=".cookiename" lognUrl="login/login.aspx" protectin="None" timeout="20" path="/">

    </forms>

    Michael

    "Emad" <iemad@hotmail.com> wrote in message news:%23Y$TJPvUDHA.424@TK2MSFTNGP11.phx.gbl...
    > I have an asp.net application using form authentication for security.... I
    > have a link on the login screen that links to another forgotpassword.aspx
    > page... I want to unsecure forgotpassword.aspx so that you don't have to be
    > logged in to view it.... I saw this somewhere and I know that it can be
    > done in the web.config but I can't figure out where it is.
    >
    > Any help?
    >
    > Thanks
    >
    > Emad
    >
    >

    ---
    Outgoing mail is certified Virus Free.
    Checked by AVG anti-virus system ([url]http://www.grisoft.com[/url]).
    Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003
    abacnet Guest

  5. #4

    Default Re: Turn Off security for specific pages

    In my case all the Login related pages are in a completely separate project, under IIS. So they have their own directory and web.config file. If your Login files are in the same project then what about trying to put another web.config file just under the Login/ directory? Configuration files are are inherited from parent, by default. We can override them for a subdirectory.
    "Michael Pearson" <michaelp_extrajunktoremove@televox.com> wrote in message news:%23Ylw$ivUDHA.3308@tk2msftngp13.phx.gbl...
    Put your "unsecured" pages in a different directory. I have my login and forgot your password pages in a subdirectory. My web.config has this in it.

    <authentication mode="Forms">


    <forms name=".cookiename" lognUrl="login/login.aspx" protectin="None" timeout="20" path="/">

    </forms>

    Michael

    "Emad" <iemad@hotmail.com> wrote in message news:%23Y$TJPvUDHA.424@TK2MSFTNGP11.phx.gbl...
    > I have an asp.net application using form authentication for security.... I
    > have a link on the login screen that links to another forgotpassword.aspx
    > page... I want to unsecure forgotpassword.aspx so that you don't have to be
    > logged in to view it.... I saw this somewhere and I know that it can be
    > done in the web.config but I can't figure out where it is.
    >
    > Any help?
    >
    > Thanks
    >
    > Emad
    >
    >

    ---
    Outgoing mail is certified Virus Free.
    Checked by AVG anti-virus system ([url]http://www.grisoft.com[/url]).
    Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003
    abacnet 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