I have an directory structure like this:
localhost/site/myapp
localhost/site/myapp/author/
localhost/site/myapp/revisor/
localhost/site/myapp/editor/
localhost/site/myapp/admin/
myapp is an application and is where my web.config is located. I must
create 4 completely separated areas for authors, revisors, and editor
and an admin. The 4 areas will be completely different, so i put each of
them in a different folder.
So, each of the 4 folders have a login form, the user authenticates and
can do his job. I am trying to use the Form Authentication that ASP.NET
provides, but i don`t want an user authenticated for "author" to have
access to "revisor" area... or an "editor" have access to "admin". there
are no privilegies, no admin will access author area. So each folder
will have it`s own authentication.
I tried this:
[localhost/site/myapp/web.config]
<configuration>
<location path="author">
<authentication mode="Forms">
<forms name="AUTHOR_AUTH" loginUrl="~/author/login.aspx" />
</authentication>
<authorization>
<deny users="?">
</authorization>
</location>
<location path="revisor">
<authentication mode="Forms">
<forms name="REVISOR_AUTH" loginUrl="~/revisor/login.aspx" />
</authentication>
<authorization>
<deny users="?">
</authorization>
</location>
<and etc="... =)"/>
</configuration>
but it`s not redirecting to the login page.. i can enter any folder
always. I don`t know if my web.config is wrong, or Windows
Authentication comes first to authorize...
anyone can help?
thanks... 3 2135
you can only have one auth method per site/vd.
You will have to create each with its own virtual dir if you want it to have
it's own auth
Otherwise, have them login at the top level, and control auth based on
groups,id's,etc
--
Curt Christianson
Owner/Lead Developer, DF-Software www.Darkfalz.com
"Natan" <nv***@mandic.com.br> wrote in message
news:ek**************@tk2msftngp13.phx.gbl... I have an directory structure like this:
localhost/site/myapp localhost/site/myapp/author/ localhost/site/myapp/revisor/ localhost/site/myapp/editor/ localhost/site/myapp/admin/
myapp is an application and is where my web.config is located. I must create 4 completely separated areas for authors, revisors, and editor and an admin. The 4 areas will be completely different, so i put each of them in a different folder.
So, each of the 4 folders have a login form, the user authenticates and can do his job. I am trying to use the Form Authentication that ASP.NET provides, but i don`t want an user authenticated for "author" to have access to "revisor" area... or an "editor" have access to "admin". there are no privilegies, no admin will access author area. So each folder will have it`s own authentication.
I tried this:
[localhost/site/myapp/web.config] <configuration> <location path="author"> <authentication mode="Forms"> <forms name="AUTHOR_AUTH" loginUrl="~/author/login.aspx" /> </authentication> <authorization> <deny users="?"> </authorization> </location>
<location path="revisor"> <authentication mode="Forms"> <forms name="REVISOR_AUTH" loginUrl="~/revisor/login.aspx" /> </authentication> <authorization> <deny users="?"> </authorization> </location>
<and etc="... =)"/> </configuration>
but it`s not redirecting to the login page.. i can enter any folder always. I don`t know if my web.config is wrong, or Windows Authentication comes first to authorize...
anyone can help? thanks...
Curt_C [MVP] wrote: you can only have one auth method per site/vd. You will have to create each with its own virtual dir if you want it to have it's own auth Otherwise, have them login at the top level, and control auth based on groups,id's,etc
what prevents an app from having multiple logins, if you have the
"location" tag to specify different configs for different directories
and the cookie path can be changed?
And how do i disable windows authentication in my app?
web.config wont allow it, it's part of the asp.net framework I believe. ONE
auth type per "site/vd". You can override/exclude/include but you can't set
multiple types
--
Curt Christianson
Owner/Lead Developer, DF-Software www.Darkfalz.com
"Natan" <nv***@mandic.com.br> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl... Curt_C [MVP] wrote: you can only have one auth method per site/vd. You will have to create each with its own virtual dir if you want it to
have it's own auth Otherwise, have them login at the top level, and control auth based on groups,id's,etc
what prevents an app from having multiple logins, if you have the "location" tag to specify different configs for different directories and the cookie path can be changed?
And how do i disable windows authentication in my app? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Suresh Gladstone |
last post by:
Hi,
This is a bit with versioning and installation of
the .NET dlls. I want to perform the following,
1. A third party application will be invoking my .NET dll
through COM interop . For this I...
|
by: Simon Harvey |
last post by:
Hi chaps,
Can someone tell me the following:
If I declare a site wide config file and then want to overide it in a secure
directory, do I need to have a complete config file, or can I just...
|
by: BPearson |
last post by:
Hello
I would like to have several sites share a single web.config file. To accomplish this, I would point the root of these sites to the same folder. Is there any reason why I might not want to...
|
by: Bennett Haselton |
last post by:
If I add this to my web.config file:
<authentication mode="Forms">
<forms name=".ASPXUSERDEMO" loginUrl="login.aspx" protection="All"
timeout="60" />
</authentication>
I can configure the...
|
by: Benny Ng |
last post by:
Hi,all,
How to let the sub-directory to avoid the authentication control from Root's
webconfig?
I heard that we can add a new web.config to the sub-directory. And then we
can slove the problem....
|
by: Eric Sabine |
last post by:
This situation requres many exes to be sitting on a network share. I would
like all of these to use the same app.config file, which will be stored in
the same location on the network. A quick...
|
by: Khodr |
last post by:
Hello,
I am using VS.NET 2003 and vb. I build my application MyApp and it generates
MyApp.exe.config. So now MyApp.exe reads parameters from MyApp.exe.config.
Great and no problem!
I need to...
|
by: Andrew |
last post by:
Hi,
I have a default.aspx which allows the user to choose between module Admin
and module B. When the user clicks either one, he will be redirected to a
FormsAuthentication login page. The...
|
by: mmcd79 |
last post by:
I built a VB.net application that makes use of a machine level DB
connection string setting, and a user level starting location setting.
The machine level setting and the default user based...
|
by: Andrus |
last post by:
..NET 2 Winforms application.
How to create new setting and set it default value in userSettings section
of app.config file or overwrite existing setting value ?
I found code below in this list...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
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,...
|
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
| |