ManagementAuthenticationProvider.CreatePrincipal Method (String)

IIS 7.0
 

Creates a Windows security principal that has the specified user name.

Namespace:   Microsoft.Web.Management.Server
Assembly:  Microsoft.Web.Management (in Microsoft.Web.Management.dll)

protected internal virtual IPrincipal CreatePrincipal(
	string userName
)

Parameters

userName
Type: System.String

The user name.

You can override this method in derived classes to create your own principal (for example, to create your own GenericPrincipal supporting roles).

By default, the roles array of the GenericPrincipal object that is returned is initialized to null.

The default authentication type of the System.Security.Principal.GenericIdentity that is used to create the GenericPrincipal object is "Basic".

Return to top
Show: