Re: authentication mode for specific files?



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


.



Relevant Pages

  • Blocking Direct URL Access through web config
    ... I also have a web config ... The problem is when I paste the direct URL into the ... the browser, I can gain access to that page. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Authorization and Profile Application Block generates errors when using whithin Web Application
    ... I am trying to use the "Authorization and Profile Application Block" ... Referenced Class: ... this method cannot find my config file entries... ...
    (microsoft.public.dotnet.distributed_apps)
  • Re: not working:
    ... well if the error is parsing the config file, then you can turn error reporting on with the web config. ... I can even publish a FP2003 app to the server that has the problem and it runs fine. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Change in web.config
    ... if your app writes to the web config. ... > There's no easy way to interact with writing to web.config. ... > use the classes inside System.XML to modify the .config file like any ... >> How change parameter in web.config via website - one of site in my ...
    (microsoft.public.dotnet.framework.aspnet)
  • How can the location roles be read from the web.config file?
    ... I have a config file such as this: ... As you can see there are two directories 'Admin' and 'Account' which have ... Gery D. Dorazio ...
    (microsoft.public.dotnet.framework.aspnet.security)