SingleSignOnIdentity.ToWindowsIdentity Method (SingleSignOnIdentity)

 

Returns the WindowsIdentity object for the specified SingleSignOnIdentity object.

Namespace:   System.Web.Security.SingleSignOn
Assembly:  System.Web.Security.SingleSignOn (in System.Web.Security.SingleSignOn.dll)

Syntax

public static WindowsIdentity ToWindowsIdentity(
    SingleSignOnIdentity identity
)
public:
static WindowsIdentity^ ToWindowsIdentity(
    SingleSignOnIdentity^ identity
)
static member ToWindowsIdentity : 
        identity:SingleSignOnIdentity -> WindowsIdentity
Public Shared Function ToWindowsIdentity (
    identity As SingleSignOnIdentity
) As WindowsIdentity

Parameters

Return Value

Type: System.Security.Principal.WindowsIdentity

The WindowsIdentity object.

Remarks

If the Identity is a valid WindowsIdentity when it reaches the AD FS claims-based application ASP.NET HttpModule (WebSsoAuthenticationModule), the AD FS API preserves the WindowsIdentity by saving it to the SingleSignOnIdentity that the AD FS API populates into the Identity. Therefore, it is possible for the claims-based application to also receive a Windows NT 4.0 token.

The ToWindowsIdentity method is used in both claims-based and traditional applications.

See Also

SingleSignOnIdentity Class
System.Web.Security.SingleSignOn Namespace

Return to top