Saml2SecurityTokenHandler.FindUpn Method (ClaimsIdentity)

.NET Framework (current version)
 

Finds the UPN claim value in the specified ClaimsIdentity object for the purpose of mapping the identity to a WindowsIdentity object.

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

protected virtual string FindUpn(
	ClaimsIdentity claimsIdentity
)

Parameters

claimsIdentity
Type: System.Security.Claims.ClaimsIdentity

The claims identity object containing the desired UPN claim.

Return Value

Type: System.String

A string that contains the UPN claim value found.

.NET Framework
Available since 4.5
Return to top
Show: