Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude/rules/dotnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ cd dotnet && dotnet pack src/Xzawed.Keycloak.Sdk/Xzawed.Keycloak.Sdk.csproj -c R
## Dependency and structural decisions

- ⚠️ **`Keycloak.AuthServices.Sdk` 3.0.0 is net10-only, so net8.0 stays on the 2.x line.** Anything below the `DI.Abstractions` floor that line requires is a hard NU1605 error; the floor and the reasoning are in the csproj comment beside the pin.
- ⚠️ **The 10.x major of `DI.Abstractions` is on hold under the keep-net8 policy** — take the 9.x patches, close 10.x. The current pin is written only in the dependency table in the root `CLAUDE.md`.
- ⚠️ **Keep-net8 closes `DI.Abstractions` majors above 9.x and `SourceLink.GitHub` above 10.x** — take patches; why: csproj comments by the pins. The DI pin lives only in the root `CLAUDE.md` table.
- **`IHttpClientFactory` is deliberately not used** — a single long-lived `HttpClient` plus `PooledConnectionLifetime` (5 minutes) avoids stale DNS. This is a library used without DI, so it does not force a factory lifecycle onto the consumer.
- The glue between `admin` and `auth` is `ITokenProvider` alone (`AuthClient : ITokenSource` is the default source) — §4 isomorphic.
6 changes: 3 additions & 3 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,18 +264,18 @@ dev(`devDependencies` — **앵커 있음**):
| JWT(강화 검증) | `Microsoft.IdentityModel.JsonWebTokens` | 8.23.0 |
| JWT(JWKS/디스커버리) | `Microsoft.IdentityModel.Protocols.OpenIdConnect` | 8.23.0 |
| Admin | `Keycloak.AuthServices.Sdk` | 2.7.0 |
| DI 추상화 | `Microsoft.Extensions.DependencyInjection.Abstractions` | 9.0.22 |
| DI 추상화 | `Microsoft.Extensions.DependencyInjection.Abstractions` | 9.0.23 |

dev(테스트 csproj — **앵커 있음**):

<!-- doc-guard: kind=dep source=dotnet/tests/Xzawed.Keycloak.Sdk.Tests/Xzawed.Keycloak.Sdk.Tests.csproj min=6 -->
| 의존성 | 좌표 | 버전 |
|---|---|---|
| 테스트 호스트 | `Microsoft.NET.Test.Sdk` | 18.11.0 |
| 테스트 호스트 | `Microsoft.NET.Test.Sdk` | 18.12.0 |
| 단위 테스트 | `xunit` | 2.9.3 |
| 테스트 어댑터 | `xunit.runner.visualstudio` | 4.0.1 |
| 커버리지 수집 | `coverlet.collector` | 10.1.0 |
| HTTP 목 | `WireMock.Net` | 2.30.0 |
| HTTP 목 | `WireMock.Net` | 2.31.0 |
| 통합 테스트 | `Testcontainers.Keycloak` | 4.16.0 |

전부 Apache-2.0/MIT(호환).
Expand Down
13 changes: 10 additions & 3 deletions dotnet/src/Xzawed.Keycloak.Sdk/Xzawed.Keycloak.Sdk.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,16 @@
<PackageReference Include="Microsoft.IdentityModel.Protocols.OpenIdConnect" Version="8.23.0" />
<PackageReference Include="Keycloak.AuthServices.Sdk" Version="2.7.0" />
<!-- AddKeycloak DI extension needs IServiceCollection/AddSingleton (DI.Abstractions), NOT IHttpClientFactory.
9.0.8 satisfies Keycloak.AuthServices.Sdk 2.7.0's transitive floor (>= 9.0.8); 9.0.x still supports net8.0. -->
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.22" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="10.0.403" PrivateAssets="All" />
9.0.8 satisfies Keycloak.AuthServices.Sdk 2.7.0's transitive floor (>= 9.0.8); 9.0.x still supports net8.0.
Majors above 9.x stay closed while the TFM is net8.0 (keep-net8): 10.x does carry a net8.0 group but gives a
net8.0 target nothing (PR #57 close), and the 11.0.0 nuspec has no net8.0 group at all. Reopen with a TFM move.
Re-measure a version's groups: https://api.nuget.org/v3-flatcontainer/<id>/<version>/<id>.nuspec (lowercase id). -->
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.23" />
<!-- Build-time only, yet held on 10.x (keep-net8): 11.x (nuspec groups net10.0 · net472) moves its System.IO.Hashing
dependency from 10.x to 11.0.0, which has no net8.0 group and warns "doesn't support net8.0" on every build of
this net8.0 library. 10.x ships net8.0 tasks and depends on System.IO.Hashing 10.x, which has a net8.0 group.
Reopen when an 11.x nuspec's System.IO.Hashing has a net8.0 group again, or with a TFM move. -->
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="10.0.404" PrivateAssets="All" />
</ItemGroup>
<ItemGroup>
<InternalsVisibleTo Include="Xzawed.Keycloak.Sdk.Tests" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<NoWarn>$(NoWarn);CS1591</NoWarn>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.11.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.12.0" />
<PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="4.0.1" />
<!-- ⚠️ coverlet은 **컬렉터만** 참조한다. msbuild 통합(coverlet.msbuild)은 두 가지 이유로 뺐다:
Expand All @@ -19,7 +19,7 @@
MSBuild는 중복 타깃을 경고 없이 마지막 import로 덮으므로, 버전이 갈리는 순간
조용한 동작 변경이 된다(10.0.1에서는 본문이 동일해 아직 무해). -->
<PackageReference Include="coverlet.collector" Version="10.1.0" />
<PackageReference Include="WireMock.Net" Version="2.30.0" />
<PackageReference Include="WireMock.Net" Version="2.31.0" />
<PackageReference Include="Testcontainers.Keycloak" Version="4.16.0" />
</ItemGroup>
<ItemGroup>
Expand Down
Loading