From e00bcbe2751df8067b7abc30c90c4664f86d47c9 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Fri, 23 Mar 2018 14:13:26 +0100 Subject: [PATCH] ... this code is not used --- OAuth.AspNet.Token/TicketDataFormatTokenValidator.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OAuth.AspNet.Token/TicketDataFormatTokenValidator.cs b/OAuth.AspNet.Token/TicketDataFormatTokenValidator.cs index 02629472..7611184e 100644 --- a/OAuth.AspNet.Token/TicketDataFormatTokenValidator.cs +++ b/OAuth.AspNet.Token/TicketDataFormatTokenValidator.cs @@ -7,21 +7,21 @@ using System.Text.RegularExpressions; namespace OAuth.AspNet.Tokens { - + [Obsolete] public class TicketDataFormatTokenValidator : ISecurityTokenValidator { #region Constructors - public TicketDataFormatTokenValidator() : this(null) { } + public TicketDataFormatTokenValidator() : this(null, "AccessToken", new string [] { "v1" }) { } - public TicketDataFormatTokenValidator(IDataProtectionProvider dataProtectionProvider) + public TicketDataFormatTokenValidator(IDataProtectionProvider dataProtectionProvider, string purpose, string [] subPurposes) { if (dataProtectionProvider == null) { dataProtectionProvider = new MonoDataProtectionProvider(System.AppDomain.CurrentDomain.FriendlyName) .CreateProtector("profile"); } - _ticketDataFormat = new TicketDataFormat(dataProtectionProvider.CreateProtector("Access_Token", "v1")); + _ticketDataFormat = new TicketDataFormat(dataProtectionProvider.CreateProtector(purpose, subPurposes)); } #endregion