-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9f46c8d
commit ec7fe6c
Showing
94 changed files
with
634 additions
and
513 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"version": "0.2.0", | ||
"compounds": [ | ||
{ | ||
"name": "Run All (interactive)", | ||
"configurations": ["IdentityServer", "Api", "Web"], | ||
"presentation": { | ||
"group": "10-compunds", | ||
} | ||
}, | ||
{ | ||
"name": "Run All (client credentials)", | ||
"configurations": ["IdentityServer", "Api", "ClientCredentials"], | ||
"presentation": { | ||
"group": "10-compunds", | ||
} | ||
} | ||
], | ||
"configurations": [ | ||
{ | ||
"name": "IdentityServer", | ||
"type": "coreclr", | ||
"request": "launch", | ||
"preLaunchTask": "build-identityserver", | ||
"program": "${workspaceFolder}/IdentityServer/bin/Debug/net8.0/IdentityServer.dll", | ||
"args": [], | ||
"cwd": "${workspaceFolder}/IdentityServer", | ||
"env": { | ||
"ASPNETCORE_ENVIRONMENT": "Development" | ||
}, | ||
"console": "externalTerminal", | ||
}, | ||
{ | ||
"name": "Api", | ||
"type": "coreclr", | ||
"request": "launch", | ||
"preLaunchTask": "build-api", | ||
"program": "${workspaceFolder}/Api/bin/Debug/net8.0/Api.dll", | ||
"args": [], | ||
"cwd": "${workspaceFolder}/Api/", | ||
"env": { | ||
"ASPNETCORE_ENVIRONMENT": "Development" | ||
}, | ||
"console": "externalTerminal", | ||
}, | ||
{ | ||
"name": "ClientCredentials", | ||
"type": "coreclr", | ||
"request": "launch", | ||
"preLaunchTask": "build-clientcredentials", | ||
"program": "${workspaceFolder}/ClientCredentials/bin/Debug/net8.0/ClientCredentials.dll", | ||
"args": [], | ||
"cwd": "${workspaceFolder}/ClientCredentials", | ||
"console": "externalTerminal", | ||
"env": { | ||
"ASPNETCORE_ENVIRONMENT": "Development" | ||
}, | ||
}, | ||
{ | ||
"name": "Web", | ||
"type": "coreclr", | ||
"request": "launch", | ||
"preLaunchTask": "build-web", | ||
"program": "${workspaceFolder}/WebClient/bin/Debug/net8.0/WebClient.dll", | ||
"args": [], | ||
"cwd": "${workspaceFolder}/WebClient", | ||
"console": "externalTerminal", | ||
"serverReadyAction": { | ||
"action": "openExternally", | ||
"pattern": "\\bNow listening on:\\s+(https?://\\S+)" | ||
}, | ||
"env": { | ||
"ASPNETCORE_ENVIRONMENT": "Development" | ||
}, | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "build", | ||
"type": "process", | ||
"command": "dotnet", | ||
"args": [ | ||
"build", | ||
"${workspaceFolder}/DPoP.sln", | ||
"/property:GenerateFullPaths=true", | ||
"/consoleloggerparameters:NoSummary" | ||
], | ||
"problemMatcher": "$msCompile" | ||
}, | ||
{ | ||
"label": "build-identityserver", | ||
"type": "process", | ||
"command": "dotnet", | ||
"args": [ | ||
"build", | ||
"${workspaceFolder}/IdentityServer", | ||
"/property:GenerateFullPaths=true", | ||
"/consoleloggerparameters:NoSummary" | ||
], | ||
"problemMatcher": "$msCompile" | ||
}, | ||
{ | ||
"label": "build-api", | ||
"type": "process", | ||
"command": "dotnet", | ||
"args": [ | ||
"build", | ||
"${workspaceFolder}/Api", | ||
"/property:GenerateFullPaths=true", | ||
"/consoleloggerparameters:NoSummary" | ||
], | ||
"problemMatcher": "$msCompile" | ||
}, | ||
{ | ||
"label": "build-clientcredentials", | ||
"type": "process", | ||
"command": "dotnet", | ||
"args": [ | ||
"build", | ||
"${workspaceFolder}/ClientCredentials", | ||
"/property:GenerateFullPaths=true", | ||
"/consoleloggerparameters:NoSummary" | ||
], | ||
"problemMatcher": "$msCompile" | ||
}, | ||
{ | ||
"label": "build-web", | ||
"type": "process", | ||
"command": "dotnet", | ||
"args": [ | ||
"build", | ||
"${workspaceFolder}/WebClient", | ||
"/property:GenerateFullPaths=true", | ||
"/consoleloggerparameters:NoSummary" | ||
], | ||
"problemMatcher": "$msCompile" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.Web"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<Nullable>enable</Nullable> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="IdentityModel" Version="6.2.0" /> | ||
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.1" /> | ||
<PackageReference Include="Serilog.AspNetCore" Version="8.0.0" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace ApiHost; | ||
namespace Api; | ||
|
||
public enum DPoPMode | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
using System; | ||
|
||
namespace ApiHost; | ||
namespace Api; | ||
|
||
public class DPoPOptions | ||
{ | ||
|
12 changes: 6 additions & 6 deletions
12
IdentityServer/v7/DPoP/Api/DPoP/DPoPProofValidatonContext.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
using System.Collections.Generic; | ||
using System.Security.Claims; | ||
|
||
namespace ApiHost; | ||
namespace Api; | ||
|
||
public class DPoPProofValidatonContext | ||
{ | ||
/// <summary> | ||
/// The ASP.NET Core authentication scheme triggering the validation | ||
/// </summary> | ||
public string Scheme { get; set; } | ||
public required string Scheme { get; set; } | ||
|
||
/// <summary> | ||
/// The HTTP URL to validate | ||
/// </summary> | ||
public string Url { get; set; } | ||
public required string Url { get; set; } | ||
|
||
/// <summary> | ||
/// The HTTP method to validate | ||
/// </summary> | ||
public string Method { get; set; } | ||
public required string Method { get; set; } | ||
|
||
/// <summary> | ||
/// The DPoP proof token to validate | ||
/// </summary> | ||
public string ProofToken { get; set; } | ||
public required string ProofToken { get; set; } | ||
|
||
/// <summary> | ||
/// The access token | ||
/// </summary> | ||
public string AccessToken { get; set; } | ||
public required string AccessToken { get; set; } | ||
} |
Oops, something went wrong.