Dela via


CookieAuthenticationOptions.TicketDataFormat Property

Definition

The TicketDataFormat is used to protect and unprotect the identity and other properties which are stored in the cookie value. If it is not provided a default data handler is created using the data protection service contained in the IApplicationBuilder.Properties. The default data protection service is based on machine key when running on ASP.NET, and on DPAPI when running in a different process.

public:
 property Microsoft::AspNetCore::Authentication::ISecureDataFormat<Microsoft::AspNetCore::Authentication::AuthenticationTicket ^> ^ TicketDataFormat { Microsoft::AspNetCore::Authentication::ISecureDataFormat<Microsoft::AspNetCore::Authentication::AuthenticationTicket ^> ^ get(); void set(Microsoft::AspNetCore::Authentication::ISecureDataFormat<Microsoft::AspNetCore::Authentication::AuthenticationTicket ^> ^ value); };
public Microsoft.AspNetCore.Authentication.ISecureDataFormat<Microsoft.AspNetCore.Authentication.AuthenticationTicket> TicketDataFormat { get; set; }
member this.TicketDataFormat : Microsoft.AspNetCore.Authentication.ISecureDataFormat<Microsoft.AspNetCore.Authentication.AuthenticationTicket> with get, set
Public Property TicketDataFormat As ISecureDataFormat(Of AuthenticationTicket)

Property Value

Applies to