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. Advertising

  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. Advertising

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. John J Lee
    Replies:
    3
    Views:
    520
    bruno at modulix
    Dec 1, 2005
  2. Edward Loper
    Replies:
    0
    Views:
    504
    Edward Loper
    Aug 7, 2007
  3. John J Lee
    Replies:
    0
    Views:
    541
    John J Lee
    Aug 7, 2007
  4. Edward Loper

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

    Edward Loper, Aug 9, 2007, in forum: Python
    Replies:
    0
    Views:
    457
    Edward Loper
    Aug 9, 2007
  5. Neal Becker
    Replies:
    0
    Views:
    400
    Neal Becker
    Aug 9, 2007
Loading...

Share This Page