2020-12-20 03:06:43 +02:00
|
|
|
|
using IdentityServer.Domain.Entities;
|
2021-11-13 16:04:04 +02:00
|
|
|
|
using IdentityServer.Domain.Models;
|
2020-12-20 03:06:43 +02:00
|
|
|
|
using System.Threading.Tasks;
|
2020-12-20 00:18:53 +02:00
|
|
|
|
|
|
|
|
|
namespace IdentityServer.Domain.Repositories
|
|
|
|
|
{
|
|
|
|
|
public interface IIdentityRepository
|
|
|
|
|
{
|
2021-11-13 16:04:04 +02:00
|
|
|
|
Task<AppUser> GetUser(string userName, string password);
|
|
|
|
|
Task UpdateUserAfterAuthentication(AppUser user, Token token);
|
2021-11-13 17:17:13 +02:00
|
|
|
|
Task<UserToken[]> GetActiveTokens();
|
2020-12-20 00:18:53 +02:00
|
|
|
|
}
|
|
|
|
|
}
|