... this code is not used

This commit is contained in:
Paul Schneider 2018-03-23 14:13:26 +01:00
commit f155a47073

View file

@ -7,21 +7,21 @@ using System.Text.RegularExpressions;
namespace OAuth.AspNet.Tokens namespace OAuth.AspNet.Tokens
{ {
[Obsolete]
public class TicketDataFormatTokenValidator : ISecurityTokenValidator public class TicketDataFormatTokenValidator : ISecurityTokenValidator
{ {
#region Constructors #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) if (dataProtectionProvider == null)
{ {
dataProtectionProvider = new MonoDataProtectionProvider(System.AppDomain.CurrentDomain.FriendlyName) dataProtectionProvider = new MonoDataProtectionProvider(System.AppDomain.CurrentDomain.FriendlyName)
.CreateProtector("profile"); .CreateProtector("profile");
} }
_ticketDataFormat = new TicketDataFormat(dataProtectionProvider.CreateProtector("Access_Token", "v1")); _ticketDataFormat = new TicketDataFormat(dataProtectionProvider.CreateProtector(purpose, subPurposes));
} }
#endregion #endregion