PC Review


Reply
Thread Tools Rate Thread

Configuring Windows Auth & Forms Auth in Asp.Net

 
 
=?Utf-8?B?Q2hyaXMgTW9oYW4=?=
Guest
Posts: n/a
 
      28th Apr 2004
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>
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
windows auth and forms auth Smokey Grindle Microsoft ASP .NET 1 8th Jun 2006 04:14 PM
Re: windows auth and forms auth Winista Microsoft ASP .NET 0 8th Jun 2006 03:04 PM
Windows Auth, but Forms Auth for one page? =?Utf-8?B?ZGhucml2ZXJzaWRl?= Microsoft ASP .NET 1 8th Jan 2005 05:50 PM
Auth Mgr cannot save/open auth store on shared network drive Karl Microsoft Windows 2000 Active Directory 0 26th May 2004 05:29 PM
Forms Auth. vs IIS Auth. Kevin Microsoft C# .NET 1 7th Dec 2003 04:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:56 AM.