Re: Httphandler redirection to document -- GetCompiledPageInstance
- From: "Martin" <martin_NO_SPAM@xxxxxxxxxxxxx>
- Date: Wed, 8 Jun 2005 08:48:49 +1200
Hi Guys,
while both of your suggestions are appreciated, I was not actually asking
about my security model,
I was actally aking how to intercept a request for a document - do some work
on it - and then send it to the browser.
I will give you an example of why I don't want to use a file viewer or
stream the file.
Assume I have a document on the server called "martinsDocument.doc"
I am using forms authntication and the document is protected with forms
authentication, so I must authenticate through forms authentication
(FIRSTLY) to be able to see the document.
However, even through I can authenticate to the application (using forms
authentication) I am NOT authorized to view the file.
However because I can authenticate to the application forms authentication
alone will NOT stop me viewing the file, I can still type the URL of
"martinsDocument.doc" into the browser (eg
http://www.mydomain.com/martinsDocument.doc) authenticate (using forms
authentication) and I will be able to view the file.
But I do not want this senario to happen, which is why I am using a http
handler.
perhaps the security model is not great but thats another story and I have
to make it work.
so I do need my http handler to be able to intercept requests for the .doc
type and assuming the person is authroised to view the file then I would
like to send the entire file back to the browser, in exactly the manner as
if the handler had never intercepted the request.
If you can help, then please let me know.
cheers
martin.
<garethdjames@xxxxxxxxx> wrote in message
news:1118153348.393737.204180@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> You can't use GetCompiledPageInstance on a doc type, its reserved for
> aspx files.
>
> why not open a reader on the doc file and write it out to the http
> response stream
>
.
- References:
- Httphandler redirection to document -- GetCompiledPageInstance
- From: Martin
- Re: Httphandler redirection to document -- GetCompiledPageInstance
- From: garethdjames@xxxxxxxxx
- Httphandler redirection to document -- GetCompiledPageInstance
- Prev by Date: Re: z-index automatically set by Visual Studio
- Next by Date: Single vs multiple IIS application roots
- Previous by thread: Re: Httphandler redirection to document -- GetCompiledPageInstance
- Next by thread: Restarting IIS after installation of a new Webapplication
- Index(es):
Relevant Pages
|