473,408 Members | 1,786 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

ASP.NET Authorization

Is the authorization tag/class in web.config\<system.web> available
only for Windows authorization? Does it make sense for Forms based
authentication?

Nov 21 '05 #1
2 3054
Yes it does make sense ,,,,
as you can set the user rights ( as with windows authentication )
example from one of my projects
<!--

<authentication mode="Forms" /> 'TEMOT <authentication mode="Windows" />
'APE

->
<authentication mode="Forms" />
<!-- AUTHORIZATION

This section sets the authorization policies of the application. You can
allow or deny access

to application resources by user or role. Wildcards: "*" mean everyone, "?"
means anonymous

(unauthenticated) users.

-->

<authorization>

<!-- <deny users="?" /> TEMOT <allow users="*" /> APE -->

<deny users="?" />

<!-- <allow users="[comma separated list of users]"

e roles="[comma separated list of roles]"/>

<deny e users="[comma separated list of users]"

roles="[comma separated list of roles]"/>

-->

</authorization>

As you see my customer TEMOT uses forms authentication and my customer APE
uses windows authentication

wich means in my project that Customer Temot has a Logon procedure ? means
deny all unauthenticated users
where the * means for APE that they will be granted the windows anonymous
user rights ( so unauthenticated users can access the website )
TIP :

if you place below tag under the closing tag of system.web you can exclude
somepages from forms authentication
this can be verry handy if you want the user to show an alternate page when
they failed to login ( it can then come from the same virtual dir )
<location path="justapage.aspx">

<system.web>

<authorization>

<allow users="*" />

</authorization>

</system.web>

</location>


"Water Cooler v2" <wt*****@yahoo.com> wrote in message
news:11*********************@g43g2000cwa.googlegro ups.com...
Is the authorization tag/class in web.config\<system.web> available
only for Windows authorization? Does it make sense for Forms based
authentication?

Nov 21 '05 #2
Yes it does make sense ,,,,
as you can set the user rights ( as with windows authentication )
example from one of my projects
<!--

<authentication mode="Forms" /> 'TEMOT <authentication mode="Windows" />
'APE

->
<authentication mode="Forms" />
<!-- AUTHORIZATION

This section sets the authorization policies of the application. You can
allow or deny access

to application resources by user or role. Wildcards: "*" mean everyone, "?"
means anonymous

(unauthenticated) users.

-->

<authorization>

<!-- <deny users="?" /> TEMOT <allow users="*" /> APE -->

<deny users="?" />

<!-- <allow users="[comma separated list of users]"

e roles="[comma separated list of roles]"/>

<deny e users="[comma separated list of users]"

roles="[comma separated list of roles]"/>

-->

</authorization>

As you see my customer TEMOT uses forms authentication and my customer APE
uses windows authentication

wich means in my project that Customer Temot has a Logon procedure ? means
deny all unauthenticated users
where the * means for APE that they will be granted the windows anonymous
user rights ( so unauthenticated users can access the website )
TIP :

if you place below tag under the closing tag of system.web you can exclude
somepages from forms authentication
this can be verry handy if you want the user to show an alternate page when
they failed to login ( it can then come from the same virtual dir )
<location path="justapage.aspx">

<system.web>

<authorization>

<allow users="*" />

</authorization>

</system.web>

</location>


"Water Cooler v2" <wt*****@yahoo.com> wrote in message
news:11*********************@g43g2000cwa.googlegro ups.com...
Is the authorization tag/class in web.config\<system.web> available
only for Windows authorization? Does it make sense for Forms based
authentication?

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: phreeskier | last post by:
i want to implement authorization with windows authentication and don't have the slightest clue of how to do this implementation. the basic windows authentication for this .NET application is...
1
by: Chris Leffer | last post by:
Hi. I would like to confirm a behaviour in the authorization element from the web.config file. Suppose the following (using Forms authentication): <authorization> <deny users="?" /> <deny...
3
by: nick | last post by:
Hi, How should I write the web.config file to allow some of the aspx files be executable to all users and others are required users to login? All the aspx files are in the same folder.
9
by: Bijoy Naick | last post by:
I've implemented forms authentication and authorization on my application. In my Web.Config, my authorization section looks like this.. <authorization> <allow roles="admin" /> <deny users="*"...
1
by: Shapper | last post by:
Hello, In my web site I need to restrict the access to page1.aspx, page2.aspx and page3.aspx to users which had login and which access level is "administrator". The remaining pages can be...
4
by: Johnnie Norsworthy | last post by:
ASP.NET 2.0 How do I configure my web site to require forms authorization only for a subfolder off the root? I know how to set Web.config for forms authentication for the whole site, but I need...
1
by: sonu | last post by:
Mark is creating a website using ASP.NET. He is using Forms authentication for authenticating and authorizing users. He has the following layout of files and directories in his website: Root...
14
by: tshad | last post by:
I am trying to set up an intranet at work that will use our Active directory to authorize our users. We also want them to access the site from the outside (such as at home) and also be...
4
by: xke | last post by:
Using web.config authorization settings, is it possible to allow my users to access default.aspx but not default.aspx?action=edit ?? <location path="default.aspx"> <system.web> <authorization>...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.