- Replaced OpenIddict references with Duende IdentityServer in the project, including updates to the API project and infrastructure. - Refactored authentication and authorization logic in AuthController, LogoutCommandHandler, and related services to align with Duende IdentityServer's structure. - Updated dependency injection configuration to register Duende IdentityServer components and JWT Bearer authentication. - Enhanced functional tests to accommodate changes in authentication flow and ensure compatibility with the new identity server. - Removed obsolete OpenIddict components and related code to streamline the project.
42 lines
1.8 KiB
XML
42 lines
1.8 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<AssemblyName>IamService.FunctionalTests</AssemblyName>
|
|
<RootNamespace>IamService.FunctionalTests</RootNamespace>
|
|
<IsPackable>false</IsPackable>
|
|
<IsTestProject>true</IsTestProject>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- EN: Test framework / VI: Test framework -->
|
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
|
|
<PackageReference Include="xunit" Version="2.9.2" />
|
|
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
<PrivateAssets>all</PrivateAssets>
|
|
</PackageReference>
|
|
|
|
<!-- EN: Integration testing / VI: Integration testing -->
|
|
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="10.0.0" />
|
|
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="10.0.1" />
|
|
<PackageReference Include="FluentAssertions" Version="6.12.2" />
|
|
|
|
<!-- EN: Duende IdentityServer for testing / VI: Duende IdentityServer cho testing -->
|
|
<PackageReference Include="Duende.IdentityServer.AspNetIdentity" Version="7.0.8" />
|
|
|
|
<!-- EN: Test containers for database / VI: Test containers cho database -->
|
|
<PackageReference Include="Testcontainers.PostgreSql" Version="4.1.0" />
|
|
|
|
<!-- EN: Coverage / VI: Coverage -->
|
|
<PackageReference Include="coverlet.collector" Version="6.0.2">
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
<PrivateAssets>all</PrivateAssets>
|
|
</PackageReference>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\..\src\IamService.API\IamService.API.csproj" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|