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

            return(result.ToList());
        }
Esempio n. 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());
        }