Example #1
0
 public Task <Resources> GetAllResourcesAsync()
 {
     return(Task.FromResult(new Resources(IdentityServices.GetIdentityResources(), ApiServices.GetApiResources())));
 }
Example #2
0
        public Task <IEnumerable <IdentityResource> > FindIdentityResourcesByScopeAsync(IEnumerable <string> scopeNames)
        {
            var identityResources = IdentityServices.GetIdentityResources().Where(item => scopeNames.Contains(item.Name));

            return(Task.FromResult(identityResources));
        }