1
0
mirror of https://github.com/bitwarden/server synced 2025-12-30 07:03:42 +00:00

implemented grant repository and identity server PersistedGrantStore

This commit is contained in:
Kyle Spearrin
2017-01-11 23:20:54 -05:00
parent 9749d1e3a8
commit 2abb1aaae5
5 changed files with 221 additions and 4 deletions

View File

@@ -0,0 +1,17 @@
using System;
using System.Threading.Tasks;
using Bit.Core.Domains;
using System.Collections.Generic;
namespace Bit.Core.Repositories
{
public interface IGrantRepository
{
Task<Grant> GetByKeyAsync(string key);
Task<ICollection<Grant>> GetManyAsync(string subjectId);
Task SaveAsync(Grant obj);
Task DeleteAsync(string key);
Task DeleteAsync(string subjectId, string clientId);
Task DeleteAsync(string subjectId, string clientId, string type);
}
}