Last post Jan 09, 2019 08:24 AM by Yuki Tao
Jan 08, 2019 08:38 PM|jalali|LINK
I have an existing ASP.NET Forms application using Forms Authentication, authentication and authorization tags in Web.Config.
My Requirements are I have have created a new folder inside this application where I have to customize these two Web.Config tags ( authentication and authorization ) as the these tags have different parameters then the main Web.Config file...
How I can have keep two different (authentication and authorization) separately ?
Jan 08, 2019 09:27 PM|mgebhard|LINK
It's pretty simple to do if I understand the problem. This web.config allow anonymous access to folder that contains the web.config or add a location node to the web.config. The following configuration allows anonymous access to the root Public folder.
I'm not sure what override authentication and authorization means thigh. Keep in mind it is not possible to have two different authorization schemes in a single application. You can authorize several different ways like internal/external logins but the
authorization API has to work the same way.
Jan 09, 2019 08:24 AM|Yuki Tao|LINK
Set the access mode of the system directory or file in the root directory. Under the <configuration> tag, you can set access methods for multiple files or folders.
The following settings mean: Do not allow access to the system directory, allowing access to the system2 file.
<location path ="system">
<deny users ="?"></deny>
<location path ="system2">
<allow users ="?"></allow>