Re: Forms authentication doesn't work for downloads

From: John Timney \(ASP.NET MVP\) (timneyj_at_despammed.com)
Date: 11/23/04


Date: Tue, 23 Nov 2004 20:48:53 -0000

Forms authentication is handled by the framework - thus you likely need to
pass that type of file through the asp.net handler by mapping it in IIS...

-- 
Regards
John Timney
ASP.NET MVP
Microsoft Regional Director
"Peter Afonin" <pva@speakeasy.net> wrote in message
news:%23iyeHzZ0EHA.2316@TK2MSFTNGP15.phx.gbl...
> Hello,
>
> I'm using Forms authentication, and it works well. If user is not
> authenticated, he is routed to the login page.
>
> However, this doesn't work for downloads. If I have a file located in the
> restricted area and put a direct link to it - anyone can download it.
>
> Why is this? I expected that people would also be routed to the login
> screen. How to make this happen?
>
> I would appreciate your help.
>
> Thank you,
>
> -- 
> Peter Afonin
>
>


Relevant Pages

  • Forms authentication failed for the request
    ... authentication and a custom handler for jpg and gif files so I have the ... the handler by the web config file located in the directory. ... Forms authentication failed for the request. ...
    (microsoft.public.dotnet.framework)
  • Forms authentication failed for the request
    ... authentication and a custom handler for jpg and gif files so I have the ... the handler by the web config file located in the directory. ... Forms authentication failed for the request. ...
    (microsoft.public.dotnet.security)
  • Forms authentication doesnt work for downloads
    ... I'm using Forms authentication, and it works well. ... this doesn't work for downloads. ... I expected that people would also be routed to the login ... Peter Afonin ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: How to continue request execution in a HttpHandler
    ... to the *.aspx File you want to be compiled. ... > against some Authentication method and then allows him to continue his ... > as internal and can't be instantiated from my handler. ... > PageHandler and invoke it's ProcessRequest method from my Handler (as I ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Forms authentication doesnt work for downloads
    ... That is aspx,asmx, config and such. ... DOC and other file types with Forms Authentication ... this doesn't work for downloads. ... I expected that people would also be routed to the login ...
    (microsoft.public.dotnet.framework.aspnet.security)