Ask a Question related to ASP.NET Security, Design and Development.
-
Michael Ames #1
How to get integrated credentials from anonymous access
I want to allow both anonymous and integrated access to a web service
simultaneously. That is, if the calling user can be authenticated on the
server, I want the calling user's username. If not, I still want them to be
able to access the web service.
The documentation suggests that this is not possible, because if IIS allows
anonymous, it doesn't pass the caller's credentials on to ASP.NET. This
must not be true, however, because I can allow anonymous in IIS, but set
<deny users="?" /> in web.config and get the WindowsIdentity for the caller
that way. So it seems to me that IIS *must* pass those credentials on to
ASP.NET, which then makes the decision to reject the request if it's from an
unrecognized user.
So. Is there a way to "tap in" to that process, so that I can get the
username of a recognized user, but still allow access by unrecognized users?
Thanks!
-Michael Ames
Michael Ames Guest
-
IIS 6.0 with anonymous access and on MX 6.1
I was having a hard time setting up IIS 6.0 with anonymous access on MX6.1 I was able to run .asp extension but when running .cfm, I got the HTTP... -
issues mixing integrated Windows authentication and anonymous on same application
I'm having issues mixing integrated Windows authentication and anonymous access on same IIS app. Basically, any post back event fails (Forms... -
Return credentials with anonymous authentication?
Hi all, This is my Scenario: Have a login page in Application 1 with Anoynoumous authentication. Using this login page I would like to receive... -
Network File access using anonymous access
I have seen a number of entries related to accessing remote resources (files in my case) that need to reside on a remote server. We must leave our... -
Please help with iis/asp.net config for anonymous access.
Is this a virtual directory on a network share? Have you supplied the correct crendentials when setting up the virtual directory? If this is not on... -
Alexander Stojakovic #2
Re: How to get integrated credentials from anonymous access
Michael,
try the following few lines of code on a suitable place:
Response.StatusCode = 401;
Response.StatusDescription = "Unauthorized";
Context.ClearError();
best regard
Sascha
Alexander Stojakovic Guest
-



Reply With Quote


