HubPipelineExtensions.RequireAuthentication Method

Visual Studio 2010
.NET Framework 4

Requiring Authentication adds an AuthorizeModule to the IHubPipeline with IAuthorizeHubConnection and IAuthorizeHubMethodInvocation authorizers that will be applied globally to all hubs and hub methods. These authorizers require that the IPrincipal's IIdentity IsAuthenticated for any clients that invoke server-side hub methods or receive client-side hub method invocations.

Namespace:  Microsoft.AspNet.SignalR
Assembly:  Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)

public static void RequireAuthentication(
	this IHubPipeline pipeline


Type: Microsoft.AspNet.SignalR.Hubs.IHubPipeline
The IHubPipeline to which the AuthorizeModule will be added.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IHubPipeline. When you use instance method syntax to call this method, omit the first parameter. For more information, see or