SecurityTokenDescriptor.AddAuthenticationClaims Method (String, DateTime)

.NET Framework (current version)
 

Adds claims for the specified authentication type and authentication instant to the subject of the current instance.

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

public void AddAuthenticationClaims(
	string authType,
	DateTime time
)

Parameters

authType
Type: System.String

A URI that specifies the authentication method.

time
Type: System.DateTime

The authentication instant in UTC. If the time is not in UTC, it is converted to UTC.

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 time are added to the ClaimsIdentity specified by the Subject property.

.NET Framework
Available since 4.5
Return to top
Show: