... this code is not used

vnext
Paul Schneider 7 years ago
parent d287eabb48
commit e00bcbe275
1 changed files with 4 additions and 4 deletions

@ -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

Loading…