|
[本文檔僅供預(yù)覽,在以后的發(fā)行版中可能會發(fā)生更改。包含的空白主題用作占位符。]
<authentication mode="[Windows|Forms|Passport|None]" > <forms>...</forms> <passport/> </authentication>
特性
子元素
父元素
authentication element configures the ASP.NET authentication scheme for an ASP.NET application." xml:space="preserve">
默認(rèn)配置
authentication element is not explicitly configured in the Machine.config or the root Web.config file." xml:space="preserve">
<authentication mode="Windows">
<forms
name=".ASPXAUTH"
loginUrl="login.aspx"
defaultUrl="default.aspx"
protection="All"
timeout="30"
path="/"
requireSSL="false"
slidingExpiration="true"
cookieless="UseDeviceProfile" domain=""
enableCrossAppRedirects="false">
<credentials passwordFormat="SHA1" />
</forms>
<passport redirectUrl="internal" />
</authentication>
authentication element is configured in the Machine.config file in the .NET Framework version 1.1." xml:space="preserve"> <authentication mode="Windows">
<forms
name=".ASPXAUTH"
loginUrl="login.aspx"
protection="All"
timeout="30"
path="/"
requireSSL="false"
slidingExpiration="true">
<credentials passwordFormat="SHA1"></credentials>
</forms>
<passport redirectUrl="internal" />
</authentication>
authentication element is configured in the Machine.config file in the .NET Framework version 1.0." xml:space="preserve"> <authentication mode="Windows">
<forms
name=".ASPXAUTH"
loginUrl="login.aspx"
protection="All"
timeout="30"
path="/" >
<credentials passwordFormat="SHA1"></credentials>
</forms>
<passport redirectUrl="internal" />
</authentication>
<configuration>
<system.web>
<authentication mode="Forms">
<forms name="401kApp" loginUrl="/login.aspx"/>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</configuration>
|
|
|