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
4 changes: 2 additions & 2 deletions IdentityServer/v7/DPoP/Api/Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Duende.IdentityModel" Version="7.1.0" />
<PackageReference Include="Duende.AspNetCore.Authentication.JwtBearer" Version="0.2.0" />
<PackageReference Include="Duende.IdentityModel" Version="8.0.0" />
<PackageReference Include="Duende.AspNetCore.Authentication.JwtBearer" Version="0.3.0" />
<PackageReference Include="Serilog.AspNetCore" Version="9.0.0" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Duende.AccessTokenManagement" Version="3.2.0" />
<PackageReference Include="Duende.AccessTokenManagement" Version="4.1.0" />
<PackageReference Include="Serilog.AspNetCore" Version="9.0.0" />
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.1.2" />
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.15.0" />
</ItemGroup>
</Project>
14 changes: 8 additions & 6 deletions IdentityServer/v7/DPoP/ClientCredentials/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
using System;
using System.Security.Cryptography;
using System.Text.Json;
using Duende.AccessTokenManagement;
using Duende.AccessTokenManagement.DPoP;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.IdentityModel.Tokens;
Expand Down Expand Up @@ -38,16 +40,16 @@ public static IHostBuilder CreateHostBuilder(string[] args)
services.AddClientCredentialsTokenManagement()
.AddClient("dpop", client =>
{
client.TokenEndpoint = "https://localhost:5001/connect/token";
client.TokenEndpoint = new Uri("https://localhost:5001/connect/token");

client.ClientId = "dpop";
client.ClientSecret = "905e4892-7610-44cb-a122-6209b38c882f";
client.ClientId = ClientId.Parse("dpop");
client.ClientSecret = ClientSecret.Parse("905e4892-7610-44cb-a122-6209b38c882f");

client.Scope = "scope1";
client.DPoPJsonWebKey = CreateDPoPKey();
client.Scope = Scope.Parse("scope1");
client.DPoPJsonWebKey = DPoPProofKey.Parse(CreateDPoPKey());
});

services.AddClientCredentialsHttpClient("client", "dpop", client =>
services.AddClientCredentialsHttpClient("client", ClientCredentialsClientName.Parse("dpop"), client =>
{
client.BaseAddress = new Uri("https://localhost:5005/");
});
Expand Down
12 changes: 6 additions & 6 deletions IdentityServer/v7/DPoP/DPoP.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,20 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31912.275
MinimumVisualStudioVersion = 15.0.26124.0
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IdentityServerHost", "IdentityServerHost\IdentityServerHost.csproj", "{7F49863A-08F1-4A9B-9740-C05CF679384F}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Api", "Api\Api.csproj", "{1EDEC089-0640-44D0-8566-FFAB1F078F8A}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ClientCredentials", "ClientCredentials\ClientCredentials.csproj", "{DC45EDC7-CE9F-4928-A847-FA20A59E15A0}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebClient", "WebClient\WebClient.csproj", "{CB8E6070-4964-4A52-A58C-3E9F67A4EEC4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IdentityServerHost", "..\IdentityServerHost\src\IdentityServerHost.csproj", "{60375429-8C38-4A49-BCBF-1AD486D33EDC}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{7F49863A-08F1-4A9B-9740-C05CF679384F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7F49863A-08F1-4A9B-9740-C05CF679384F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7F49863A-08F1-4A9B-9740-C05CF679384F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7F49863A-08F1-4A9B-9740-C05CF679384F}.Release|Any CPU.Build.0 = Release|Any CPU
{1EDEC089-0640-44D0-8566-FFAB1F078F8A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1EDEC089-0640-44D0-8566-FFAB1F078F8A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1EDEC089-0640-44D0-8566-FFAB1F078F8A}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand All @@ -33,6 +29,10 @@ Global
{CB8E6070-4964-4A52-A58C-3E9F67A4EEC4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CB8E6070-4964-4A52-A58C-3E9F67A4EEC4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CB8E6070-4964-4A52-A58C-3E9F67A4EEC4}.Release|Any CPU.Build.0 = Release|Any CPU
{60375429-8C38-4A49-BCBF-1AD486D33EDC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{60375429-8C38-4A49-BCBF-1AD486D33EDC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{60375429-8C38-4A49-BCBF-1AD486D33EDC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{60375429-8C38-4A49-BCBF-1AD486D33EDC}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
32 changes: 0 additions & 32 deletions IdentityServer/v7/DPoP/IdentityServerHost/Clients.cs

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading