Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Web config security settings

Reply
Thread Tools

Web config security settings

 
 
Kazim Kargi
Guest
Posts: n/a
 
      08-21-2003
Hi all;
I want to use user name and password in my asp.net project
for all aspx files but not for asmx files. Or i want to
use some files with user name but some another not
In web config my configuration is;
authentication mode="Forms">
<forms loginUrl="tom/ortak/LoginPage.aspx"
protection="All" path="/tom/"/>
</authentication>

<authorization>
<deny users="?"/>
</authorization>

I want some files not to ask user name/ pass while other
project files ask on same time. How can i do?

Thanks for your help...


 
Reply With Quote
 
 
 
 
Teemu Keiski
Guest
Posts: n/a
 
      08-21-2003
In the same web.config (that means also files in the same application)
specify a <location> tag (inside <configuration> outside <system.web>) that
points to the file. Inside it specify differentiating authorization details.

....
</system.web>
<location path="publicpage.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
....
</configuration>

If you need to protect other content than normal ASP.NET stuff like aspx,
asmx etc, you need to map that file extension in IIS for ASP.NET's ISAPI dll
so those files are served by ASp.NET (that they are *not* by default)

--
Teemu Keiski
MCP, Designer/Developer
Mansoft tietotekniikka Oy
http://www.mansoft.fi

AspInsiders Member, www.aspinsiders.com
ASP.NET Forums Moderator, www.asp.net
AspAlliance Columnist, www.aspalliance.com


"Kazim Kargi" <(E-Mail Removed)> wrote in message
news:0cf301c367f2$61063850$(E-Mail Removed)...
> Hi all;
> I want to use user name and password in my asp.net project
> for all aspx files but not for asmx files. Or i want to
> use some files with user name but some another not
> In web config my configuration is;
> authentication mode="Forms">
> <forms loginUrl="tom/ortak/LoginPage.aspx"
> protection="All" path="/tom/"/>
> </authentication>
>
> <authorization>
> <deny users="?"/>
> </authorization>
>
> I want some files not to ask user name/ pass while other
> project files ask on same time. How can i do?
>
> Thanks for your help...
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Settings.settings file with settings for multiple regions donet programmer ASP .Net 3 11-20-2009 03:05 PM
Class Library reading web.config Settings OR app.config settings leeanne ASP .Net 0 09-24-2008 05:36 PM
dll config and web.config and Label Expressions (binding label text to dll config settings) CSharpner ASP .Net 0 04-09-2007 09:00 PM
Web.Config Get Config settings at runtime. =?Utf-8?B?QXVndXN0aW4gUHJhc2FubmEuIEo=?= ASP .Net 3 02-06-2004 01:17 PM
Re: Web config security settings CT ASP .Net 0 08-24-2003 02:19 PM



Advertisments