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