After your application has authenticated users, you can proceed to authorize their access to resources. But there is a question to answer first: Just who is the user to whom your are grating access?
<authorization>
<allow .../>
<deny .../>
</authorization>
allow : Adds to the mapping of authorization rules an authorization rule that allows access to a resource.
deny : Adds to the mapping of authorization rules an authorization rule that denies access to a resource.
Configurable locations
<authorization>
<allow .../>
<deny .../>
</authorization>
allow : Adds to the mapping of authorization rules an authorization rule that allows access to a resource.
deny : Adds to the mapping of authorization rules an authorization rule that denies access to a resource.
Configurable locations
- Machine.config
- Root-level Web.config
- Application-level Web.config
- Virtual or physical directory–level Web.config
Configures the ASP.NET authentication scheme that is used to identify users who view an ASP.NET application.
<authentication mode="[Windows|Forms|Passport|None]" >
<forms>...</forms>
<passport/>
</authentication>
Windows:
Specifies Windows authentication as the default authentication mode. Use it with any form of Microsoft Internet Information Services (IIS) authentication: Basic, Digest, Integrated Windows authentication (NTLM/Kerberos), or certificates. In this case, your application delegates the authentication responsibility to the underlying IIS.
Forms:
Specifies ASP.NET forms–based authentication as the default authentication mode.
Passport:
Specifies Microsoft Passport Network authentication as the default authentication mode.
None:
Specifies no authentication. Your application expects only anonymous users or the application provides its own authentication.
The authentication element configures the ASP.NET authentication scheme for an ASP.NET application. The authentication scheme determines how to identify users who want to view the ASP.NET application.
Configurable locations
<authentication mode="[Windows|Forms|Passport|None]" >
<forms>...</forms>
<passport/>
</authentication>
Windows:
Specifies Windows authentication as the default authentication mode. Use it with any form of Microsoft Internet Information Services (IIS) authentication: Basic, Digest, Integrated Windows authentication (NTLM/Kerberos), or certificates. In this case, your application delegates the authentication responsibility to the underlying IIS.
Forms:
Specifies ASP.NET forms–based authentication as the default authentication mode.
Passport:
Specifies Microsoft Passport Network authentication as the default authentication mode.
None:
Specifies no authentication. Your application expects only anonymous users or the application provides its own authentication.
The authentication element configures the ASP.NET authentication scheme for an ASP.NET application. The authentication scheme determines how to identify users who want to view the ASP.NET application.
Configurable locations
- Machine.config
- Root-level Web.config
- Application-level Web.config