Re: Forms authentication doesn't work for downloads

From: Peter Afonin (pva_at_speakeasy.net)
Date: 11/23/04


Date: Tue, 23 Nov 2004 13:03:55 -0800

Thank you very much for your explanations!

Peter

"Teemu Keiski" <joteke@aspalliance.com> wrote in message
news:%23l2qg3Z0EHA.1940@TK2MSFTNGP15.phx.gbl...
> Forms Auth works only for those pages/file/resources which are processed
by
> ASP.NET by default. That is aspx,asmx, config and such. You can tweak that
> in IIS (See Applications configuration for different file extensions like
> where aspx is mapped to aspnet_isapi.dll) by having the custom file
> extension mapped for aspnet_isapi.dll
>
> See this blog post for detailed explanations:
>
> Protect PDF, DOC and other file types with Forms Authentication
>
http://dotnetjunkies.com/WebLog/richard.dudley/archive/2004/05/21/14215.aspx
>
> --
> Teemu Keiski
> MCP, Microsoft MVP (ASP.NET), AspInsider
> ASP.NET Forum Moderator, AspAlliance Columnist
> http://blogs.aspadvice.com/joteke
>
>
>
> "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.Protect PDF, DOC and other
> file types with Forms Authentication
> >
> > 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

  • Re: How to telnet commands automatically ?
    ... Peter T. Breuer wrote: ... one of the fastest RSA ... not authentication. ... > administration in your life ... ...
    (comp.os.linux.misc)
  • Re: Tutorial/Guide for installing SQL Server2K SP3 on WS03
    ... I agree with Peter. ... I always install with mixed mode. ... Windows Authentication for the most part because of easier user management, ... > When intalling SQL Server go for mixed. ...
    (microsoft.public.sqlserver.setup)
  • Re: Web service authentication
    ... Peter; ... fallback in basic authentication?). ... >> anonymous doesn't allow my SQL Server to render DataSet I need. ... I think I can leave Windows authentication + ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Cannot use Netscape to open Intranet site
    ... > You must use basic authentication in order for Netscape to work. ... > | Integrated Windows Authentication and, again, don't have any problems ... > | Peter Afonin ...
    (microsoft.public.inetserver.iis.security)