1

Topic: Some section authentification in Web.config

I want to add a little forms authentification for the application.
I use it in the basic application, but there are 2 pages where separate login and the password is necessary and it is necessary for me to check parameter Request. IsAuthenticated and it should not be true if the user was  in basic application.
In a separate folder I cannot add the given pages as I need to leave correct structure of links, namely - "site/a.aspx" and "site/b.aspx".
Mine Web.config:

<location path = "a.aspx">
<system.web>
<authorization>
<allow users = "admin"/>
<deny users = "*"/>
</authorization>
</system.web>
</location>
<location path = "b.aspx">
<system.web>
<authorization>
<allow users = "admin"/>
<deny users = "*"/>
</authorization>
</system.web>
</location>
<system.web>
...
<authentication mode = "Forms">
<forms name = "ManageUsers" timeout = "5">
<credentials passwordFormat = "MD5">
<user name = "admin" password = "4cfdc2e157eefe6facb983b1d557b3a1"/>
</credentials>
</forms>
</authentication>
...

The moderator: we Learn to use tags of design of the code - FAQ
If I add authentification in location at reversal to page I receive the following error - " It is an error to use a section registered as allowDefinition ='MachineToApplication ' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. "

2

Re: Some section authentification in Web.config

mbrdrg wrote:

but there are 2 pages where separate login and the password

is necessary can to you two roles are necessary?
If for a separate role to do authentification that it it is rigid.

3

Re: Some section authentification in Web.config

Petro123 wrote:

it is passed...
Can to you two roles are necessary?
If for a separate role to do authentification that it it is rigid.

No as if I will become authorized there on other account the account of the principal form will be re-recorded.

4

Re: Some section authentification in Web.config

mbrdrg wrote:

it is passed...
No as if I will become authorized there on other account the account of the principal form will be re-recorded.

It is not necessary  "there" under other account.
Give to an account an additional role and all.

5

Re: Some section authentification in Web.config

On a subject - why in a template of the standard web application there is, say, a form of change of the password, but there is no management interface roles??

6

Re: Some section authentification in Web.config

behind a board wrote:

On a subject - why in a template of the standard web application there is, say, a form of change of the password, but there is no management interface roles??

in java too is not present.
There without  in web.xml config of application and in AppServere.
You entered the password and on it authorization what role at you.
it is not necessary.

7

Re: Some section authentification in Web.config

behind a board wrote:

it is passed...
It is not necessary  "there" under other account.
Give to an account an additional role and all.

One user with the password which is not connected in any way to accounts of principal application is simply necessary. The stub is simply necessary for the given pages,   an account. The degree principal speaks to make so.

8

Re: Some section authentification in Web.config

Petro123 wrote:

and on it authorization what role at you.

In sense?! The role is once adjusted? And they at the user cannot be a little??

9

Re: Some section authentification in Web.config

mbrdrg wrote:

one user with the password which is not connected in any way to accounts of principal application is simply necessary. The stub is simply necessary for the given pages,   an account. The degree principal speaks to make so.

I understood time from the fourth.
Well and  it it is pure alert th! Type

alert (' the Input only for administrators ')

And if the degree principal wants to come - tell that you built in the neural network, which itself defines - the administrator you or not.

10

Re: Some section authentification in Web.config

behind a board wrote:

it is passed...
In sense?! The role is once adjusted? And they at the user cannot be a little??

https://stackoverflow.com/questions/857 … eb-project
Some sections in a config and resources in AppServere in which correspond  with  on . They can not coincide.