Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Security/src/Microsoft.AspNetCore.Authentication/Data/TicketDataFormat.cs')
-rw-r--r--src/Security/src/Microsoft.AspNetCore.Authentication/Data/TicketDataFormat.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Security/src/Microsoft.AspNetCore.Authentication/Data/TicketDataFormat.cs b/src/Security/src/Microsoft.AspNetCore.Authentication/Data/TicketDataFormat.cs
new file mode 100644
index 0000000000..e43943cfc8
--- /dev/null
+++ b/src/Security/src/Microsoft.AspNetCore.Authentication/Data/TicketDataFormat.cs
@@ -0,0 +1,15 @@
+// Copyright (c) .NET Foundation. All rights reserved.
+// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
+
+using Microsoft.AspNetCore.DataProtection;
+
+namespace Microsoft.AspNetCore.Authentication
+{
+ public class TicketDataFormat : SecureDataFormat<AuthenticationTicket>
+ {
+ public TicketDataFormat(IDataProtector protector)
+ : base(TicketSerializer.Default, protector)
+ {
+ }
+ }
+}