public async Task GetListByScopesAsync()
 {
     (await identityResourceRepository.GetListByScopesAsync(new [] { "", "NewIdentityResource2" })).Count.ShouldBe(1);
 }
Example #2
0
        public virtual async Task <IEnumerable <IdentityServer4.Models.IdentityResource> > FindIdentityResourcesByScopeAsync(IEnumerable <string> scopeNames)
        {
            var resource = await _identityResourceRepository.GetListByScopesAsync(scopeNames.ToArray(), includeDetails : true);

            return(_objectMapper.Map <List <IdentityResource>, List <IdentityServer4.Models.IdentityResource> >(resource));
        }