Re: Forms authentication and downloading files
From: Lauchlan M (LMackinnon_at_Hotmail.com)
Date: 10/10/03
- Next message: Michael Tissington: "Re: Forms authentication and downloading files"
- Previous message: Michael Tissington: "Re: Forms authentication and downloading files"
- In reply to: Michael Tissington: "Re: Forms authentication and downloading files"
- Next in thread: Michael Tissington: "Re: Forms authentication and downloading files"
- Reply: Michael Tissington: "Re: Forms authentication and downloading files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 10 Oct 2003 10:11:16 +1000
> Before I add the mapping ASP.NET security does nothing and I can download
> the file.
> After I add the mapping then the Forms Authentication works. HOWEVER the
> file is NOT downloaded, I simply get a blank page ...
Well, that's working then! <g>
What do you want it to do? You don't want it to go the requested resource,
because they don't have permission for it. I don't want to spend the time
looking this up for you, but I expect you would have to generate/handle some
sort of error code (like 404 page not found, but something custom) and
provide a page to tell the user they did not have access to that page. Or
you log them out, or redirect them to the home page, or whatever you want to
do.
Maybe you might want to ask on one of the MS IIS newgroups as well, since it
is much an IIS question as an ASP.NET one.
FWIW, I handle this in one of the globa.asax methods (ie before the page is
loaded), and if they are trying to access a resource they don't have
permissions for, I log them out and bounce them back to the login page, with
a message telling them they were getting out of line (not in those words of
course . . .).
HTH
Lauchlan M
- Next message: Michael Tissington: "Re: Forms authentication and downloading files"
- Previous message: Michael Tissington: "Re: Forms authentication and downloading files"
- In reply to: Michael Tissington: "Re: Forms authentication and downloading files"
- Next in thread: Michael Tissington: "Re: Forms authentication and downloading files"
- Reply: Michael Tissington: "Re: Forms authentication and downloading files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|