Skip to content

Commit

Permalink
fix: cannot set client IDP restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Apr 2, 2021
1 parent 6a12d69 commit 9835e82
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
<div class="input-group-append select" @onclick="() => DeleteClicked.InvokeAsync(null)">
<span class="input-group-text oi oi-trash" />
</div>
</div>

</div>
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,14 @@ protected override async Task<IEnumerable<string>> GetFilteredValues(string term
.ConfigureAwait(false);

_filteredProviders = response.Items;
StateHasChanged();
return null;
}

protected override void SetValue(string inputValue)
{
_providerName = _filteredProviders?.FirstOrDefault(p => p.Id == inputValue)?.DisplayName ?? inputValue;
var selected = _filteredProviders?.FirstOrDefault(p => p.Id == inputValue);
_providerName = selected?.DisplayName ?? inputValue;
Entity.Provider = selected?.Id ?? inputValue;
}

private async Task<string> GetProviderName(string id)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
// Project: Aguafrommars/TheIdServer
// Copyright (c) 2021 @Olivier Lefebvre
using Aguacongas.AspNetCore.Authentication;
using Aguacongas.IdentityServer.EntityFramework.Store;
using Aguacongas.IdentityServer.Store;
using Aguacongas.IdentityServer.Store.Entity;
using Aguacongas.TheIdServer.BlazorApp;
using Microsoft.AspNetCore.Authentication.Google;
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Testing;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using RichardSzalay.MockHttp;
using System;
using System.Collections.Generic;
Expand Down Expand Up @@ -155,7 +158,7 @@ public async Task AddGrantType_should_validate_grant_type_rules()
Assert.NotNull(form);

await host.WaitForNextRenderAsync(() => form.SubmitAsync());
}
}

[Theory]
[InlineData("0.01:00:00")]
Expand Down

0 comments on commit 9835e82

Please sign in to comment.