SecurityTokenDescriptor.AddAuthenticationClaims Method (String, DateTime)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: