Re: Configuring Windows Auth & Forms Auth in Asp.Net
From: avnrao (avn_at_newsgroups.com)
Date: 04/29/04
- Previous message: Ken Schaefer: "Re: ASP.NET Impersonation / delegation"
- In reply to: Chris Mohan: "Configuring Windows Auth & Forms Auth in Asp.Net"
- Next in thread: Chris Mohan: "Forms Auth in subdirs but WIndows Auth in Main Site"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 29 Apr 2004 12:15:10 +0530
this looks ok to me as far as you take care of securing your forms
authentication. I mean securing forms authentication cookie and role list.
any request to subfolders, the location element in web.config clearly
overrides windows authentication.
Av.
"Chris Mohan" <chrismo1__=AT__yahoo.com> wrote in message
news:41D908AE-CFD5-46BF-AFA9-D8D7F64231B3@microsoft.com...
> Configuring Windows Auth & Forms Auth in Asp.Net
> Hi, I've configured a web app to use windows authentication and also set
> up two separate subdirectories to use forms authentication. It appears to
> work fine but I have never seen a sample that demonstrates both in the
> same web.config and I don't like assuming i've done this correctly and
> securely.
>
> Please take a look at the following from my web.config and let me know
> what you think(its not the full config-- just stripped down to its
> essentials w/ no attributes) Its pretty basic, i just use a location
> element for each sub-dir and then set the auth mode inside of it. Thanks!!
>
> <?xml version="1.0" encoding="UTF-8"
> ?><configuration><system.web><authentication mode="Windows"
> /><authorization><allow users="*" /></authorization></system.web><location
> path="SecureArea1"><system.web><authentication mode="Forms"><forms
> loginUrl="login.aspx" /></authentication><authorization><deny users="?"
> /></authorization></system.web></location><location
> path="SecureArea2"><system.web><authentication mode="Forms"><forms
> loginUrl="login.aspx" / ></authentication><authorization><deny users="?"
> /></authorization></system.web></location></configuration>
- Previous message: Ken Schaefer: "Re: ASP.NET Impersonation / delegation"
- In reply to: Chris Mohan: "Configuring Windows Auth & Forms Auth in Asp.Net"
- Next in thread: Chris Mohan: "Forms Auth in subdirs but WIndows Auth in Main Site"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|