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