Re: Windows Authentication and Anonymous login URGENT
From: Michal A. Valasek (news_at_altaircom.net)
Date: 07/26/03
- Next message: Michal A. Valasek: "Re: Moving from an SSL to an non-SSL connection"
- Previous message: Jim Cheshire: "RE: Hyperlink variable security"
- In reply to: Silvia Brunet Jones: "Re: Windows Authentication and Anonymous login URGENT"
- Next in thread: Joseph E Shook: "Re: Windows Authentication and Anonymous login URGENT"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sat, 26 Jul 2003 00:11:28 +0200
Hello,
| thanks for your prompt replay I really need to figure
| something out. My problem is that I am doign what you are
| saying which is to check if the user is authenticated
| (via the Request.IsAuthenticated) and have the
| default.aspx to be accessible for both authenticated and
| anonymous. The problem is that once you set anonymous
| users then the Request.IsAuthenticated is allways false.
| This is crazy. If I am inside the intranet then the
| Request.IsAuthenticated should be true and then from
| outside using anonymous login it should say yes. Right????
| This is just what I want to know.
oh, I forgot that you're using the Windows, not Forms authentication. When
authenticated using Forms Authentication, data are stored in cookie, which
is sent with every request to given server, regardless if the server cares
about it.
In Windows authentication, the process if that server gives authentication
challenge, when requests one. Therefore, if anonymous access is enabled, all
users are anonymous, because server does not send the challenge.
Only solution I know is to make the Default page only for authenticated
users. Then try to catch the unauthorized state (probably as custom error
handler for HTTP error 401 or 403). You can get URL of requested page and if
it's /Default.aspx, redirect anonymous user somewhere.
-- Michal A. Valasek, Altair Communications, http://www.altaircom.net Please do not reply to this e-mail, for contact see http://www.rider.cz
- Next message: Michal A. Valasek: "Re: Moving from an SSL to an non-SSL connection"
- Previous message: Jim Cheshire: "RE: Hyperlink variable security"
- In reply to: Silvia Brunet Jones: "Re: Windows Authentication and Anonymous login URGENT"
- Next in thread: Joseph E Shook: "Re: Windows Authentication and Anonymous login URGENT"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|