2018-04-05 23:10:51 +10:00
|
|
|
|
using System;
|
|
|
|
|
|
using Microsoft.Owin.Security;
|
|
|
|
|
|
using Umbraco.Core;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Web.Security
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
2019-01-26 10:52:19 -05:00
|
|
|
|
/// This is used so that we can retrieve the auth ticket protector from an IOwinContext
|
2018-04-05 23:10:51 +10:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
internal class UmbracoAuthTicketDataProtector : DisposableObjectSlim
|
|
|
|
|
|
{
|
|
|
|
|
|
public UmbracoAuthTicketDataProtector(ISecureDataFormat<AuthenticationTicket> protector)
|
|
|
|
|
|
{
|
|
|
|
|
|
Protector = protector ?? throw new ArgumentNullException(nameof(protector));
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public ISecureDataFormat<AuthenticationTicket> Protector { get; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|