Seriously: Allowing anonymous and authenticated and anonymous access (somehow related to ASP.NET)
From: Ed Maillet (emaillet@_nospam_.unum.com)
Date: 07/19/02
- Next message: Ed Maillet: "PrincipalPermissionAttribute basic help"
- Previous message: Marek Grolms: "Re: Smart Card"
- In reply to: Christian Weyer: "Seriously: Allowing anonymous and authenticated and anonymous access (somehow related to ASP.NET)"
- Next in thread: Christian Weyer: "Re: Seriously: Allowing anonymous and authenticated and anonymous access (somehow related to ASP.NET)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Ed Maillet" <emaillet@_nospam_.unum.com> Date: Fri, 19 Jul 2002 14:46:11 -0700
The answer is write an ISAPI filter. When used in
conjunction with IIS setting of Windows Integrated, it'll
do exactly what you want.
Anonymous users get to anonymous content.
Intranet users access items seemlessly.
Non-intranet users get redirected to a login page.
In order to assign permissions using NTFS, non-intranet
users must have a Windows/AD account for them to login to.
The details of a filter are a bit much to handle here but
here look at the CHttpFilter methods for:
OnPreProcessHeaders
OnAuthenticate (this method gets bypassed for intranet
users automatically)
OnSendResponse (trap the 401 and redirect to login)
>-----Original Message-----
>Hi experts,
>
>first of all excuse the cross post, but I hope and feel
to get help from
>all these groups.
>
>I have been thinking about this problem for quite a long
time now ...
>but I seem to go around in circles.
>The following scenario is given:
>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.
>
>How do I do this?
>I have been trying out about 3469 settings in IIS and
ASP.NET web.config
>.... and must say that I am _not_ an absolute beginner ;-
) But I cannot
>figure out the right way to go.
>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).
>
>I hope my problem gets clear.
>
>Thanks a lot and cheers,
>Christian
>---
>http://www.xmlwebservices/
>
>.
>
- Next message: Ed Maillet: "PrincipalPermissionAttribute basic help"
- Previous message: Marek Grolms: "Re: Smart Card"
- In reply to: Christian Weyer: "Seriously: Allowing anonymous and authenticated and anonymous access (somehow related to ASP.NET)"
- Next in thread: Christian Weyer: "Re: Seriously: Allowing anonymous and authenticated and anonymous access (somehow related to ASP.NET)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|