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:
17
src/Core/Repositories/IGrantRepository.cs
Normal file
17
src/Core/Repositories/IGrantRepository.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user