Forms Authentication problem with IsAuthenticated

From: Bob Hansen (bhansen200_at_jascorp.com)
Date: 02/04/04


Date: Wed, 4 Feb 2004 14:46:08 -0600

Hello All,

I am trying to set up forms authentication for an ASP.NET web site. I
programmed quite a bit of stuff with custom IPrincipal and IIdentity objects
and everything only to find out that none of it worked. After fiddling
around with things I decided to try a really basic example. A set some
values in the web.config as follows...

<authentication mode="Forms">
<forms name=".ASPXAUTH" loginUrl="Login.aspx" />
</authentication>
<authorization>
<deny users="?" />
<allow users="*" />
</authorization>

I then created a simple login.aspx page and a default.aspx page with no
implementation. The only thing I wanted to do was see if accessing the
default.aspx page would bring up the login.aspx page as expected. Didnt
work. Not only that, but on further inspection of the
Context.User.Identity.IsAuthenticated property revealed that I am always
authenticated. I cannot unauthenticate myself. Further, the
Context.User.Identity.Name comes up as my login name for windows complete
with network domain!

Is there a configuration option I am missing somewhere? Is there something
in IIS that needs to be set? Please help!!!

Cheers,

Bob Hansen
JASCorp, L.L.C.
www.jasrx.com
www.jascorp.com



Relevant Pages

  • RE: SBS 2003 Activesync Problem-getting 0x85010004 error on the PD
    ... Please open IIS manager console, navigate to Web Sites->Default Web Site ... Click Directory Security tap, Under Authentication and access control, ... When opening a new thread via the web interface, we recommend you check the ...
    (microsoft.public.windows.server.sbs)
  • RE: SBS 2003 Activesync Problem-getting 0x85010004 error on the PDA
    ... when access Activesync on PDA. ... Please open IIS manager console, navigate to Web Sites->Default Web Site ... Click Directory Security tap, Under Authentication and access control, ...
    (microsoft.public.windows.server.sbs)
  • RE: CEICW-OMA errors
    ... Please double confirm the settings of the default Web Site settings as ... Open IIS Manager, navigate Web site -> Default Web Site, right click it ... Authentication Methods: ...
    (microsoft.public.windows.server.sbs)
  • Re: OWA and RWW not accessible.
    ... In Authentication and Access Control... ... Is all of this correct on your SBS server? ... Open the Web site home page, and then look for links to the information ...
    (microsoft.public.windows.server.sbs)
  • Re: IIS 6 Integrated Authentication and IE 6 - security credential
    ... My server is in a domain. ... :> NTLM authentication by setting the NTAuthenticationProviders metabase ... :>>> If I reconfigure the web site so that it runns in an application ... :>>> associated with the default Network Service identity then the request ...
    (microsoft.public.inetserver.iis.security)