Re: Seriously: Allowing anonymous and authenticated and anonymous access (somehow related to ASP.NET)

From: x y (jamescagney90210@excite.com)
Date: 07/17/02


From: "x y" <jamescagney90210@excite.com>
Date: Wed, 17 Jul 2002 08:47:18 -0400


"Christian Weyer" <cw@_nospam-xmlwebservices.cc> wrote in message
news:3D33EC06.5030902@_nospam-xmlwebservices.cc...
> Hi experts,

Who, me?? I think maybe you have the wrong person.

> my application (portal-like) allows access to all (anonymous) users by
> default. But then there are some pages that require explicit
authentication.
> It must be possible to use Windows Integrated Authentication in IIS to
> enable Intranet users a seamless workflow (without having to login to
> the Web app through a seperate page). When the user is not an Intranet
> user then I have to 'redirect' him to a login page (ASP.NET forms
> based-like). Everything on a single code base, no seperate Web or things
> like that.

> One problem I see is that when both Anonymous and Windows Integrated are
> enabled in IIS, then _always_ Anonymous i used!? Ah, of course I am
> using 'Windows' in web.config's authentication section :-)
> I also played around with the 'send a 401 back'. This works, then I get
> NTLM authentication forced. But I then need a step to determine that it
> is _not_ a Windows user and redirect him to the login page (therefore
> anonymous -> authenticated -> anonymous).

Interesting idea. If you know the IP addresses of the windows users you
could write an .ASP script to get the IP address and redirect non-Windows
users based on IP address. Additionally, you could use different FQDN
server names with host headers or different port numbers to separate the
windows users from the non-windows users.

I guess you could write a custom 401.2.htm page so that after a person has
tried to access a windows-only web page and entered their login ID
unsuccessfully 3 times, the page either assumes the person with the failed
login ID is not a windows user or uses .ASP script to check the login ID
being used by the person. This might not be so desirable because if the
person is a windows user that has forgotten their password, they will get
redirected to the internet and may not realize that there's a problem... and
if the person clicks cancel because they are an internet user and think they
are trying to go somewhere forbidden, then they never get redirected to the
internet page.

Unless you choose to use one of the methods in the first paragraph [user ID
type determined by IP address or by the FQDN used in the URL] or one of the
methods you've rejected such as a custom login web page, I can't think of a
way to test whether the user is Windows or not without making them go
through the 3 login ID and password challenge screens. Until they do that,
they're still using the anonymous login ID as far as IIS is concerned.



Relevant Pages

  • Re: Default.aspx - newbie Q`
    ... check and redirect to the ReturnURL or Selected.aspx depending on the case. ... > and replace it with something that takes then straight to the login page. ... >> Curt Christianson ... >>> authentication ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Default.aspx - newbie Q`
    ... check and redirect to the ReturnURL or Selected.aspx depending on the case. ... > and replace it with something that takes then straight to the login page. ... >> Curt Christianson ... >>> authentication ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ASP 2.0 Membership API
    ... After successful authentication, you want to redirect back to the original application, but the returnURL parameter contains only /App1 as the URL. ... The solution to that problem is adding a local login page to the application that does a manual redirect to the central authentication application. ... if not you have to use cookieless auth ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Detecting Failed Authorization
    ... after every authentication request and before the user ... is redirected to any login page. ... > "Ken Dopierala Jr." ... >> 'Redirect where you want the user to go. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Response.Redirect with IE
    ... login page to another one after a successful login - Am I right? ... In that case, set the Authentication mode to "Forms" in Web.Config, set the ... You don't have to manually redirect, Forms Authentication will do it for you ... > From: Ken Dopierala Jr. ...
    (microsoft.public.dotnet.framework.aspnet)