authentication mode for specific files?

Discussion in 'ASP .Net Security' started by Jeremy Chapman, Jun 15, 2006.

  1. I'm my web application, I've specified to use forms authentication in the
    web config. In my signin page, I have an img tag to an image in my web
    applications virtual directory. Because the user is not signed in yet, the
    image url is not available, is there any way in the web config file to
    specify specific files that do not require authentication?

    <authentication mode="Forms">
    <forms name=".ASPXeScript.Admin" loginUrl="signin.aspx" protection="All"
    timeout="30" path="/" defaultUrl="default.aspx">
    <!-- protection="[All|None|Encryption|Validation]" -->
    </forms>
    </authentication>
    <authorization>
    <deny users="?"/>
    </authorization>
     
    Jeremy Chapman, Jun 15, 2006
    #1
    1. Advertisements

  2. <location path="specialFile.aspx">
    <system.web>
    <authorization>
    <allow users="*" />
    </authorization>
    </system.web>
    </location>
    ---------------------------------------
    Dominick Baier - DevelopMentor
    http://www.leastprivilege.com

    > I'm my web application, I've specified to use forms authentication in
    > the web config. In my signin page, I have an img tag to an image in
    > my web applications virtual directory. Because the user is not signed
    > in yet, the image url is not available, is there any way in the web
    > config file to specify specific files that do not require
    > authentication?
    >
    > <authentication mode="Forms">
    > <forms name=".ASPXeScript.Admin" loginUrl="signin.aspx"
    > protection="All"
    > timeout="30" path="/" defaultUrl="default.aspx">
    > <!-- protection="[All|None|Encryption|Validation]" -->
    > </forms>
    > </authentication>
    > <authorization>
    > <deny users="?"/>
    > </authorization
     
    Dominick Baier [DevelopMentor], Jun 15, 2006
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dave
    Replies:
    0
    Views:
    806
  2. John J Lee
    Replies:
    3
    Views:
    751
    bruno at modulix
    Dec 1, 2005
  3. =?Utf-8?B?SmF2?=

    Is ViwState Page-Specific or UserControl-Specific

    =?Utf-8?B?SmF2?=, Aug 16, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    755
    =?Utf-8?B?SmF2?=
    Aug 16, 2006
  4. Edward Loper

    mmm-mode, python-mode and doctest-mode?

    Edward Loper, Aug 9, 2007, in forum: Python
    Replies:
    0
    Views:
    626
    Edward Loper
    Aug 9, 2007
  5. mazdotnet
    Replies:
    2
    Views:
    549
    Alexey Smirnov
    Oct 2, 2009
  6. ET

    Authentication to specific files/pages

    ET, Feb 12, 2004, in forum: ASP .Net Security
    Replies:
    5
    Views:
    271
  7. Kamil P
    Replies:
    1
    Views:
    236
    Jim Cheshire [MSFT]
    Nov 10, 2004
  8. William FERRERES
    Replies:
    7
    Views:
    473
    William FERRERES
    Jul 9, 2007
Loading...