Exemple #1
0
        public async Task <IEnumerable <PersistedGrant> > GetAllAsync(string subjectId)
        {
            var result = await _repository.FindAsync <PersistedGrant>(i => i.SubjectId == subjectId);

            return(result.ToList());
        }
Exemple #2
0
        public async Task <IEnumerable <IdentityResource> > FindIdentityResourcesByScopeAsync(IEnumerable <string> scopeNames)
        {
            var results = await _repository.FindAsync <IdentityResource>(a => scopeNames.Contains(a.Name));

            return(results.ToList());
        }