test(oidc): cover discovery regression and consume fixed IdentityServer8 rc007
All checks were successful
Dotnet build and test / build (pull_request) Successful in 8m15s
All checks were successful
Dotnet build and test / build (pull_request) Successful in 8m15s
Add an application-level smoke test for /.well-known/openid-configuration and a direct IResourceStore check so the IdentityServer8 mapper failure is caught from the Yavsc side. Bump HigginsSoft.IdentityServer8 packages to 8.1.0-pazofrc007, which includes the EntityFramework mapper fix removing the failing AutoMapper static initialization. This closes the 500 on OIDC discovery and restores remoting/auth flows that depend on discovery metadata.
This commit is contained in:
parent
b46548a08f
commit
55d305f295
2 changed files with 33 additions and 6 deletions
|
|
@ -1,16 +1,17 @@
|
|||
<Project>
|
||||
<PropertyGroup>
|
||||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
|
||||
<IdentityServer8Version>8.1.0-pazofrc007</IdentityServer8Version>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageVersion Include="System.Security.Cryptography.Pkcs" Version="10.0.9" />
|
||||
|
||||
<PackageVersion Include="HigginsSoft.IdentityServer8" Version="8.1.0-pazofrc004" />
|
||||
<PackageVersion Include="HigginsSoft.IdentityServer8.AspNetIdentity" Version="8.1.0-pazofrc004" />
|
||||
<PackageVersion Include="HigginsSoft.IdentityServer8.EntityFramework" Version="8.1.0-pazofrc004" />
|
||||
<PackageVersion Include="HigginsSoft.IdentityServer8.EntityFramework.Storage" Version="8.1.0-pazofrc004" />
|
||||
<PackageVersion Include="HigginsSoft.IdentityServer8.Security" Version="8.1.0-pazofrc004" />
|
||||
<PackageVersion Include="HigginsSoft.IdentityServer8.Storage" Version="8.1.0-pazofrc004" />
|
||||
<PackageVersion Include="HigginsSoft.IdentityServer8" Version="$(IdentityServer8Version)" />
|
||||
<PackageVersion Include="HigginsSoft.IdentityServer8.AspNetIdentity" Version="$(IdentityServer8Version)" />
|
||||
<PackageVersion Include="HigginsSoft.IdentityServer8.EntityFramework" Version="$(IdentityServer8Version)" />
|
||||
<PackageVersion Include="HigginsSoft.IdentityServer8.EntityFramework.Storage" Version="$(IdentityServer8Version)" />
|
||||
<PackageVersion Include="HigginsSoft.IdentityServer8.Security" Version="$(IdentityServer8Version)" />
|
||||
<PackageVersion Include="HigginsSoft.IdentityServer8.Storage" Version="$(IdentityServer8Version)" />
|
||||
|
||||
<PackageVersion Include="AsciiDocSharp" Version="0.1.0" />
|
||||
<PackageVersion Include="AsciiDocSharp.Converters.Html" Version="0.1.0" />
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
using IdentityServer8.Stores;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace Yavsc.Org.Tests.Smoke;
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -30,4 +33,27 @@ public class AccountSmokeTests : SmokeTestBase, IClassFixture<TestWebApplication
|
|||
using var client = _factory.CreateClient();
|
||||
await AssertResponds(client, "/signin");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task GetOpenIdConfiguration_returns_ok()
|
||||
{
|
||||
using var client = _factory.CreateClient();
|
||||
var response = await GetRaw(client, "/.well-known/openid-configuration");
|
||||
var payload = await response.Content.ReadAsStringAsync();
|
||||
|
||||
Assert.True(
|
||||
response.IsSuccessStatusCode,
|
||||
$"GET /.well-known/openid-configuration returned {(int)response.StatusCode} {response.StatusCode}. Body: {payload}");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ResourceStore_get_all_resources_does_not_throw()
|
||||
{
|
||||
using var scope = _factory.Services.CreateScope();
|
||||
var resourceStore = scope.ServiceProvider.GetRequiredService<IResourceStore>();
|
||||
|
||||
var exception = await Record.ExceptionAsync(resourceStore.GetAllResourcesAsync);
|
||||
|
||||
Assert.Null(exception);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue