public void Filter(List <string> existingClientIds) { Clients = Clients.Where(x => !existingClientIds.Contains(x.ClientId)).ToList(); ClientSecrets = ClientSecrets.Where(x => !existingClientIds.Contains(x.Client.ClientId)).ToList(); AllowedGrantTypes = AllowedGrantTypes.Where(x => !existingClientIds.Contains(x.Client.ClientId)).ToList(); RedirectUris = RedirectUris.Where(x => !existingClientIds.Contains(x.Client.ClientId)).ToList(); PostLogoutRedirectUris = PostLogoutRedirectUris.Where(x => !existingClientIds.Contains(x.Client.ClientId)).ToList(); AllowedScopes = AllowedScopes.Where(x => !existingClientIds.Contains(x.Client.ClientId)).ToList(); Claims = Claims.Where(x => !existingClientIds.Contains(x.Client.ClientId)).ToList(); AllowedCorsOrigins = AllowedCorsOrigins.Where(x => !existingClientIds.Contains(x.Client.ClientId)).ToList(); IdentityProviderRestrictions = IdentityProviderRestrictions.Where(x => !existingClientIds.Contains(x.Client.ClientId)).ToList(); Properties = Properties.Where(x => !existingClientIds.Contains(x.Client.ClientId)).ToList(); }
public async Task <IEnumerable <string> > FindRegisteredLogoutUrisAsync(TApplication app, CancellationToken cancellationToken) { cancellationToken.ThrowIfCancellationRequested(); ThrowIfDisposed(); if (app == null) { throw new ArgumentNullException(nameof(app)); } var redirectUris = await RedirectUris .Where(ru => ru.ApplicationId.Equals(app.Id) && ru.IsLogout) .Select(ru => ru.Value) .ToListAsync(cancellationToken); return(redirectUris); }