|
|
|
@ -47,14 +47,14 @@ namespace Squidex.Domain.Users.MongoDb.Infrastructure |
|
|
|
}, ct); |
|
|
|
} |
|
|
|
|
|
|
|
public Task StoreAsync(PersistedGrant grant) |
|
|
|
public async Task<IEnumerable<PersistedGrant>> GetAllAsync(string subjectId) |
|
|
|
{ |
|
|
|
return Collection.ReplaceOneAsync(x => x.Key == grant.Key, grant, UpsertReplace); |
|
|
|
return await Collection.Find(x => x.SubjectId == subjectId).ToListAsync(); |
|
|
|
} |
|
|
|
|
|
|
|
public Task<IEnumerable<PersistedGrant>> GetAllAsync(string subjectId) |
|
|
|
public Task StoreAsync(PersistedGrant grant) |
|
|
|
{ |
|
|
|
return Collection.Find(x => x.SubjectId == subjectId).ToListAsync().ContinueWith(x => (IEnumerable<PersistedGrant>)x.Result); |
|
|
|
return Collection.ReplaceOneAsync(x => x.Key == grant.Key, grant, UpsertReplace); |
|
|
|
} |
|
|
|
|
|
|
|
public Task<PersistedGrant> GetAsync(string key) |
|
|
|
|