2017-01-11 23:20:54 -05:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Threading.Tasks;
|
2017-03-08 21:45:08 -05:00
|
|
|
|
using Bit.Core.Models.Table;
|
2017-01-11 23:20:54 -05:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Bit.Core.Repositories
|
|
|
|
|
|
{
|
|
|
|
|
|
public interface IGrantRepository
|
|
|
|
|
|
{
|
|
|
|
|
|
Task<Grant> GetByKeyAsync(string key);
|
2020-07-30 17:00:13 -04:00
|
|
|
|
Task<ICollection<Grant>> GetManyAsync(string subjectId, string sessionId, string clientId, string type);
|
2017-01-11 23:20:54 -05:00
|
|
|
|
Task SaveAsync(Grant obj);
|
2020-07-30 17:00:13 -04:00
|
|
|
|
Task DeleteByKeyAsync(string key);
|
|
|
|
|
|
Task DeleteManyAsync(string subjectId, string sessionId, string clientId, string type);
|
2017-01-11 23:20:54 -05:00
|
|
|
|
}
|
|
|
|
|
|
}
|