Ejemplo n.º 1
0
        public async Task <IEnumerable <string> > GetScopes(string search)
        {
            var identityScopes = await _identityResourcesRepository.SearchScopes(search);

            var apiScopes = await _apiResourceRepository.SearchScopes(search);

            identityScopes.AddRange(apiScopes.Select(x => x.Name));
            return(identityScopes.OrderBy(a => a));
        }