By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,704 Members | 1,122 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,704 IT Pros & Developers. It's quick & easy.

IIS Basic Authentication/FormsAuthentication - HELP PLS!?

P: n/a
Hi everyone,

I am developing a site in which the root will be set with Anonymous &
Basic permissions. Past that I will have an application (directory) in
which I will be developing applications. In the past, I have been able to
use a ISAPI Filter to add the response headers dynamically, and add the
authentication to the request, therefore, allowing users into the secure
directory, and all of this is form based, there is no browser prompt (and it
adds it to every request, images, .htm files, .asp files, etc). Now I am
trying to do this with ASP.NET (VB), again, trying to avoid the browser
prompt, and add the authentication to every request (again, images, .htm
files, aspx files, etc). However, I have been unsuccessful using
FormsAuthentication with the directory set to Basic Authentication. I have
been able to get the FormsAuthentication to set the cookie, but when it
tries to go into the Basic secured directory, I get a browser prompt. Any
help would be greatly appreciated!! (Do I need to write another ISAPI
Filter, can I use FormsAuthentication to do this?? Suggestions?)

I have looked at hundreds of articles (or at least it seems!), and am not
100% how to write an ISAPI filter in .NET, if that needs to be done. Any
pointers to live artices, code, etc. would be very helpful.

Thanks!

Chad
Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Will your site be inside an Active Directory domain (intranet)?

ISAPI can be "duplicated" through HttpHandlers.

--
Clint Hill MCAD
H3O Software
http://www.h3osoftware.com
"Chad Beckner" wrote:
Hi everyone,

I am developing a site in which the root will be set with Anonymous &
Basic permissions. Past that I will have an application (directory) in
which I will be developing applications. In the past, I have been able to
use a ISAPI Filter to add the response headers dynamically, and add the
authentication to the request, therefore, allowing users into the secure
directory, and all of this is form based, there is no browser prompt (and it
adds it to every request, images, .htm files, .asp files, etc). Now I am
trying to do this with ASP.NET (VB), again, trying to avoid the browser
prompt, and add the authentication to every request (again, images, .htm
files, aspx files, etc). However, I have been unsuccessful using
FormsAuthentication with the directory set to Basic Authentication. I have
been able to get the FormsAuthentication to set the cookie, but when it
tries to go into the Basic secured directory, I get a browser prompt. Any
help would be greatly appreciated!! (Do I need to write another ISAPI
Filter, can I use FormsAuthentication to do this?? Suggestions?)

I have looked at hundreds of articles (or at least it seems!), and am not
100% how to write an ISAPI filter in .NET, if that needs to be done. Any
pointers to live artices, code, etc. would be very helpful.

Thanks!

Chad

Nov 19 '05 #2

P: n/a
Yes, it will. the "folder" that it needs to authenticate to will have
"Basic" authentication. Do you have any examples, it would really help out.
Also, if I add the httphandler, will it "intercept" the request (for all
files) before IIS gets a hold of it? The Httphandler will be specified in
the web.config, right?

Thanks!

Chad

"Clint Hill" <cl********@nospamath3osoftware.com> wrote in message
news:C5**********************************@microsof t.com...
Will your site be inside an Active Directory domain (intranet)?

ISAPI can be "duplicated" through HttpHandlers.

--
Clint Hill MCAD
H3O Software
http://www.h3osoftware.com
"Chad Beckner" wrote:
Hi everyone,

I am developing a site in which the root will be set with Anonymous &
Basic permissions. Past that I will have an application (directory) in
which I will be developing applications. In the past, I have been able
to
use a ISAPI Filter to add the response headers dynamically, and add the
authentication to the request, therefore, allowing users into the secure
directory, and all of this is form based, there is no browser prompt (and
it
adds it to every request, images, .htm files, .asp files, etc). Now I am
trying to do this with ASP.NET (VB), again, trying to avoid the browser
prompt, and add the authentication to every request (again, images, .htm
files, aspx files, etc). However, I have been unsuccessful using
FormsAuthentication with the directory set to Basic Authentication. I
have
been able to get the FormsAuthentication to set the cookie, but when it
tries to go into the Basic secured directory, I get a browser prompt.
Any
help would be greatly appreciated!! (Do I need to write another ISAPI
Filter, can I use FormsAuthentication to do this?? Suggestions?)

I have looked at hundreds of articles (or at least it seems!), and am
not
100% how to write an ISAPI filter in .NET, if that needs to be done. Any
pointers to live artices, code, etc. would be very helpful.

Thanks!

Chad

Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.