2018-03-21 09:06:32 +01:00
|
|
|
using System;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Microsoft.AspNet.Identity;
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Core.Security
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// An IUserStore interface part to implement if the store supports validating user session Ids
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <typeparam name="TUser"></typeparam>
|
|
|
|
|
/// <typeparam name="TKey"></typeparam>
|
|
|
|
|
public interface IUserSessionStore<TUser, in TKey> : IUserStore<TUser, TKey>, IDisposable
|
|
|
|
|
where TUser : class, IUser<TKey>
|
|
|
|
|
{
|
|
|
|
|
Task<bool> ValidateSessionIdAsync(int userId, string sessionId);
|
|
|
|
|
}
|
2020-03-09 16:01:57 +00:00
|
|
|
|
|
|
|
|
public interface IUserSessionStore2<TUser, in TKey> : Microsoft.AspNetCore.Identity.IUserStore<TUser>, IDisposable
|
|
|
|
|
where TUser : class
|
|
|
|
|
{
|
|
|
|
|
Task<bool> ValidateSessionIdAsync(int userId, string sessionId);
|
|
|
|
|
}
|
|
|
|
|
}
|