Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 1fb87aa

Browse files
fix warnings
1 parent ac28cb0 commit 1fb87aa

File tree

6 files changed

+25
-7
lines changed

6 files changed

+25
-7
lines changed

src/DPoP/DPoP.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
<ItemGroup>
4242
<PackageReference Include="IdentityModel" Version="6.1.0" />
43-
<PackageReference Include="minver" Version="3.0.0-alpha.1" PrivateAssets="All" />
43+
<PackageReference Include="minver" Version="4.3.0" PrivateAssets="All" />
4444
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.30.0" />
4545

4646
<PackageReference Include="Microsoft.Extensions.Logging" Version="6.0.0" />

src/DPoP/OidcClientExtensions.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,18 @@
22

33
namespace IdentityModel.OidcClient.DPoP;
44

5+
/// <summary>
6+
/// Extension methods to configure DPoP
7+
/// </summary>
58
public static class OidcClientExtensions
69
{
10+
/// <summary>
11+
/// Configure back-channel handlers for DPoP
12+
/// </summary>
13+
/// <param name="options">The OidcClient options</param>
14+
/// <param name="proofKey">The proof key</param>
15+
/// <param name="tokenEndpointInnerHandler">The inner handler for the token endpoint (optional)</param>
16+
/// <param name="apiInnerHandler">The inner handler for API calls (optional)</param>
717
public static void ConfigureDPoP(this OidcClientOptions options,
818
string proofKey,
919
HttpMessageHandler? tokenEndpointInnerHandler = null,
@@ -16,6 +26,14 @@ public static void ConfigureDPoP(this OidcClientOptions options,
1626
options.RefreshTokenInnerHttpHandler = apiDpopHandler;
1727
}
1828

29+
/// <summary>
30+
/// Creates a handler for API calls using DPoP and automatic refresh token management
31+
/// </summary>
32+
/// <param name="client">The OidcClient instance</param>
33+
/// <param name="proofKey">The proof key</param>
34+
/// <param name="refreshToken">The refresh token</param>
35+
/// <param name="apiInnerHandler">The inner handler (optional)</param>
36+
/// <returns></returns>
1937
public static HttpMessageHandler CreateDPoPHandler(this OidcClient client,
2038
string proofKey,
2139
string refreshToken,

src/IdentityTokenValidator/IdentityTokenValidator.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
</ItemGroup>
3535

3636
<ItemGroup>
37-
<PackageReference Include="minver" Version="3.0.0-alpha.1" PrivateAssets="All" />
37+
<PackageReference Include="minver" Version="4.3.0" PrivateAssets="All" />
3838

39-
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.15.0" />
39+
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.30.0" />
4040
<PackageReference Include="Microsoft.Extensions.Logging" Version="6.0.0" />
4141
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
4242
</ItemGroup>

src/IdentityTokenValidator/JwtHandlerIdentityTokenValidator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public async Task<IdentityTokenValidationResult> ValidateAsync(string identityTo
9494
};
9595
}
9696

97-
if (result.Exception is SecurityTokenUnableToValidateException)
97+
if (result.Exception is SecurityTokenValidationException)
9898
{
9999
return new IdentityTokenValidationResult
100100
{

src/OidcClient/Infrastructure/LogSerializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static class LogSerializer
2020

2121
static readonly JsonSerializerOptions JsonOptions = new JsonSerializerOptions()
2222
{
23-
IgnoreNullValues = true,
23+
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
2424
WriteIndented = true
2525
};
2626

src/OidcClient/OidcClient.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
</ItemGroup>
3838

3939
<ItemGroup>
40-
<PackageReference Include="IdentityModel" Version="5.2.0" />
41-
<PackageReference Include="minver" Version="3.0.0-alpha.1" PrivateAssets="All" />
40+
<PackageReference Include="IdentityModel" Version="6.0.0" />
41+
<PackageReference Include="minver" Version="4.3.0" PrivateAssets="All" />
4242

4343
<PackageReference Include="Microsoft.Extensions.Logging" Version="6.0.0" />
4444
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />

0 commit comments

Comments
 (0)