Export (0) Print
Expand All

AuthorizeAttribute.UserAuthorized Method

.NET Framework 4.5

When overridden, provides an entry point for custom authorization checks. Called by AuthorizeHubConnection(HubDescriptor, IRequest) and AuthorizeHubMethodInvocation(IHubIncomingInvokerContext, Boolean).

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

protected virtual bool UserAuthorized(
	IPrincipal user
)

Parameters

user
Type: System.Security.Principal.IPrincipal
The IPrincipal for the client being authorized.

Return Value

Type: System.Boolean
true if the user is authorized, otherwise, false.
Show:
© 2014 Microsoft