Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

134 lines
10 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Type Name="WindowsAuthenticationModule" FullName="System.Web.Security.WindowsAuthenticationModule">
<TypeSignature Language="C#" Maintainer="auto" Value="public sealed class WindowsAuthenticationModule : System.Web.IHttpModule" />
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyPublicKey>
</AssemblyPublicKey>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the &lt;link location="node:gtk-sharp/programming/threads"&gt;Gtk# Thread Programming&lt;/link&gt; for details.</ThreadSafetyStatement>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>System.Web.IHttpModule</InterfaceName>
</Interface>
</Interfaces>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>When the authentication <see cref="P:System.Web.Configuration.AuthenticationSection.Mode" /> is set to <see cref="F:System.Web.Configuration.AuthenticationMode.Windows" />, the <see cref="T:System.Web.Security.WindowsAuthenticationModule" /> sets the <see cref="P:System.Web.HttpContext.User" /> property of the current <see cref="T:System.Web.HttpContext" /> to an <see cref="T:System.Security.Principal.IPrincipal" /> object that represents the Windows identity supplied by IIS for the current request. If IIS uses anonymous authentication, then the <see cref="T:System.Web.Security.WindowsAuthenticationModule" /> uses the identity returned by the <see cref="M:System.Security.Principal.WindowsIdentity.GetAnonymous" /> method.</para>
<para>The <see cref="T:System.Web.Security.WindowsAuthenticationModule" /> exposes an <see cref="E:System.Web.Security.WindowsAuthenticationModule.Authenticate" /> event that enables you to provide a custom <see cref="T:System.Security.Principal.IPrincipal" /> object for the <see cref="P:System.Web.HttpContext.User" /> property of the current <see cref="T:System.Web.HttpContext" />. The <see cref="E:System.Web.Security.WindowsAuthenticationModule.Authenticate" /> event is accessed by specifying a subroutine named <system>WindowsAuthentication_OnAuthenticate</system> in the Global.asax file for your ASP.NET application.</para>
<block subset="none" type="note">
<para>In IIS 7.0, using the <see cref="T:System.Web.Security.WindowsAuthenticationModule" /> class with the <see cref="T:System.Web.Security.FormsAuthenticationModule" /> class is not supported. For more information about compatibility issues in Integrated mode, see <format type="text/html"><a href="76f9cc78-f978-4837-b1c8-51d642ec4847">Moving an ASP.NET Application from IIS 6.0 to IIS 7.0</a></format>.</para>
</block>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Sets the identity of the user for an ASP.NET application when Windows authentication is enabled. This class cannot be inherited.</para>
</summary>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public WindowsAuthenticationModule ();" />
<MemberType>Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This constructor is not intended to be called from application code.</para>
<para>ASP.NET calls this constructor to create an instance of the <see cref="T:System.Web.Security.WindowsAuthenticationModule" /> class. After calling the constructor, it calls the <see cref="M:System.Web.Security.WindowsAuthenticationModule.Init(System.Web.HttpApplication)" /> method to initialize the new <see cref="T:System.Web.Security.WindowsAuthenticationModule" /> object.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Creates an instance of the <see cref="T:System.Web.Security.WindowsAuthenticationModule" /> class.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="Authenticate">
<MemberSignature Language="C#" Value="public event System.Web.Security.WindowsAuthenticationEventHandler Authenticate;" />
<MemberType>Event</MemberType>
<ReturnValue>
<ReturnType>System.Web.Security.WindowsAuthenticationEventHandler</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="E:System.Web.Security.WindowsAuthenticationModule.Authenticate" /> event is raised during the <see cref="E:System.Web.HttpApplication.AuthenticateRequest" /> event.</para>
<para>You can access the <see cref="E:System.Web.Security.WindowsAuthenticationModule.Authenticate" /> event of the <see cref="T:System.Web.Security.WindowsAuthenticationModule" /> class by specifying a subroutine named <system>WindowsAuthentication_OnAuthenticate</system> in the Global.asax file for your ASP.NET application. </para>
<para>You can use the <see cref="P:System.Web.Security.WindowsAuthenticationEventArgs.User" /> property of the <see cref="T:System.Web.Security.WindowsAuthenticationEventArgs" /> object supplied to the <system>WindowsAuthentication_OnAuthenticate</system> event to set the <see cref="P:System.Web.HttpContext.User" /> property of the current <see cref="T:System.Web.HttpContext" /> to a custom <see cref="T:System.Security.Principal.IPrincipal" /> object. If you do not specify a value for the <see cref="P:System.Web.Security.WindowsAuthenticationEventArgs.User" /> property during the <system>WindowsAuthentication_OnAuthenticate</system> event, the Windows identity supplied by IIS is used as the identity for the current request. If IIS uses anonymous authentication, then the <see cref="P:System.Web.Security.WindowsAuthenticationEventArgs.Identity" /> property is set to the identity returned by the <see cref="M:System.Security.Principal.WindowsIdentity.GetAnonymous" /> method.</para>
<para>The <system>WindowsAuthentication_OnAuthenticate</system> event is raised only when the authentication <see cref="P:System.Web.Configuration.AuthenticationSection.Mode" /> is set to <see cref="F:System.Web.Configuration.AuthenticationMode.Windows" /> and the <see cref="T:System.Web.Security.WindowsAuthenticationModule" /> is an active HTTP module for the application.</para>
<block subset="none" type="note">
<para>In IIS 7.0 running in Integrated Mode, the <see cref="E:System.Web.Security.WindowsAuthenticationModule.Authenticate" /> event of the <see cref="T:System.Web.Security.WindowsAuthenticationModule" /> is not raised when both the ASP.NET <see cref="T:System.Web.Security.WindowsAuthenticationModule" /> and the IIS AnonymousAuthenticationModule modules are enabled. In this scenario, to receive authentication notification, subscribe to the <see cref="E:System.Web.HttpApplication.AuthenticateRequest" /> event of the <see cref="T:System.Web.HttpApplication" /> instance. For more information about compatibility issues in Integrated modes, see <format type="text/html"><a href="76f9cc78-f978-4837-b1c8-51d642ec4847">Moving an ASP.NET Application from IIS 6.0 to IIS 7.0</a></format>.</para>
</block>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Occurs when the application authenticates the current request.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="Dispose">
<MemberSignature Language="C#" Value="public void Dispose ();" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This method is not intended to be called from application code.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Releases all resources, other than memory, used by the <see cref="T:System.Web.Security.WindowsAuthenticationModule" />.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="Init">
<MemberSignature Language="C#" Value="public void Init (System.Web.HttpApplication app);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="app" Type="System.Web.HttpApplication" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This method is not intended to be called from application code.</para>
<para>The <see cref="M:System.Web.Security.WindowsAuthenticationModule.Init(System.Web.HttpApplication)" /> method ensures that the <see cref="T:System.Web.Security.WindowsAuthenticationModule" /> is included in the processing of the <see cref="E:System.Web.HttpApplication.AuthenticateRequest" /> event.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Initializes the <see cref="T:System.Web.Security.WindowsAuthenticationModule" /> object.</para>
</summary>
<param name="app">
<attribution license="cc4" from="Microsoft" modified="false" />The current <see cref="T:System.Web.HttpApplication" /> instance. </param>
</Docs>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
</Members>
</Type>