AddAuthenticationClaims Method (String)

SecurityTokenDescriptor.AddAuthenticationClaims Method (String)

.NET Framework (current version)

Adds a claim for the specified authentication method to the subject of the current instance. The authentication instant is set to the current time.

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

public void AddAuthenticationClaims(
	string authType


Type: System.String

A URI that specifies the authentication method.

A Claim with a claim type of AuthenticationMethod and a value of authType and a Claim with a claim type of AuthenticationInstant and a value of UtcNow are added to the ClaimsIdentity specified by the Subject property..

.NET Framework
Available since 4.5
Return to top
© 2016 Microsoft