Skip to content

Commit

Permalink
DPOP - Switch back to IdentityServerHost
Browse files Browse the repository at this point in the history
  • Loading branch information
josephdecock committed Jan 19, 2024
1 parent 20d2990 commit 4866982
Show file tree
Hide file tree
Showing 125 changed files with 79 additions and 77 deletions.
12 changes: 6 additions & 6 deletions IdentityServer/v7/DPoP/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,28 @@
"compounds": [
{
"name": "Run All (interactive)",
"configurations": ["IdentityServer", "Api", "Web"],
"configurations": ["IdentityServerHost", "Api", "Web"],
"presentation": {
"group": "10-compunds",
}
},
{
"name": "Run All (client credentials)",
"configurations": ["IdentityServer", "Api", "ClientCredentials"],
"configurations": ["IdentityServerHost", "Api", "ClientCredentials"],
"presentation": {
"group": "10-compunds",
}
}
],
"configurations": [
{
"name": "IdentityServer",
"name": "IdentityServerHost",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build-identityserver",
"program": "${workspaceFolder}/IdentityServer/bin/Debug/net8.0/IdentityServer.dll",
"preLaunchTask": "build-IdentityServerHost",
"program": "${workspaceFolder}/IdentityServerHost/bin/Debug/net8.0/IdentityServerHost.dll",
"args": [],
"cwd": "${workspaceFolder}/IdentityServer",
"cwd": "${workspaceFolder}/IdentityServerHost",
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
Expand Down
4 changes: 2 additions & 2 deletions IdentityServer/v7/DPoP/.vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"problemMatcher": "$msCompile"
},
{
"label": "build-identityserver",
"label": "build-IdentityServerHost",
"type": "process",
"command": "dotnet",
"args": [
"build",
"${workspaceFolder}/IdentityServer",
"${workspaceFolder}/IdentityServerHost",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
Expand Down
2 changes: 2 additions & 0 deletions IdentityServer/v7/DPoP/ClientCredentials/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ public class Program
{
public static void Main(string[] args)
{
Console.Title = "Client";

Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.WriteTo.Console(theme: AnsiConsoleTheme.Code)
Expand Down
2 changes: 1 addition & 1 deletion IdentityServer/v7/DPoP/DPoP.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ 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}") = "IdentityServer", "IdentityServer\IdentityServer.csproj", "{7F49863A-08F1-4A9B-9740-C05CF679384F}"
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Duende.IdentityServer.Models;
using System.Collections.Generic;

namespace IdentityServer
namespace IdentityServerHost
{
public static class Clients
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@page
@model IdentityServer.Pages.Account.AccessDeniedModel
@model IdentityServerHost.Pages.Account.AccessDeniedModel
@{
}
<div class="row">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.AspNetCore.Mvc.RazorPages;

namespace IdentityServer.Pages.Account;
namespace IdentityServerHost.Pages.Account;

public class AccessDeniedModel : PageModel
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@page
@model IdentityServer.Pages.Create.Index
@model IdentityServerHost.Pages.Create.Index

<div class="login-page">
<div class="lead">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;

namespace IdentityServer.Pages.Create;
namespace IdentityServerHost.Pages.Create;

[SecurityHeaders]
[AllowAnonymous]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System.ComponentModel.DataAnnotations;

namespace IdentityServer.Pages.Create;
namespace IdentityServerHost.Pages.Create;

public class InputModel
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@page
@model IdentityServer.Pages.Login.Index
@model IdentityServerHost.Pages.Login.Index

<div class="login-page">
<div class="lead">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;

namespace IdentityServer.Pages.Login;
namespace IdentityServerHost.Pages.Login;

[SecurityHeaders]
[AllowAnonymous]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System.ComponentModel.DataAnnotations;

namespace IdentityServer.Pages.Login;
namespace IdentityServerHost.Pages.Login;

public class InputModel
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace IdentityServer.Pages.Login;
namespace IdentityServerHost.Pages.Login;

public class LoginOptions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Duende Software. All rights reserved.
// See LICENSE in the project root for license information.

namespace IdentityServer.Pages.Login;
namespace IdentityServerHost.Pages.Login;

public class ViewModel
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@page
@model IdentityServer.Pages.Logout.Index
@model IdentityServerHost.Pages.Logout.Index

<div class="logout-page">
<div class="lead">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;

namespace IdentityServer.Pages.Logout;
namespace IdentityServerHost.Pages.Logout;

[SecurityHeaders]
[AllowAnonymous]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@page
@model IdentityServer.Pages.Logout.LoggedOut
@model IdentityServerHost.Pages.Logout.LoggedOut

<div class="logged-out-page">
<h1>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc.RazorPages;

namespace IdentityServer.Pages.Logout;
namespace IdentityServerHost.Pages.Logout;

[SecurityHeaders]
[AllowAnonymous]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// See LICENSE in the project root for license information.


namespace IdentityServer.Pages.Logout;
namespace IdentityServerHost.Pages.Logout;

public class LoggedOutViewModel
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

namespace IdentityServer.Pages.Logout;
namespace IdentityServerHost.Pages.Logout;

public class LogoutOptions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@page
@model IdentityServer.Pages.Ciba.AllModel
@model IdentityServerHost.Pages.Ciba.AllModel
@{
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;

namespace IdentityServer.Pages.Ciba;
namespace IdentityServerHost.Pages.Ciba;

[SecurityHeaders]
[Authorize]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@page
@model IdentityServer.Pages.Ciba.Consent
@model IdentityServerHost.Pages.Ciba.Consent
@{
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;

namespace IdentityServer.Pages.Ciba;
namespace IdentityServerHost.Pages.Ciba;

[Authorize]
[SecurityHeadersAttribute]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// See LICENSE in the project root for license information.


namespace IdentityServer.Pages.Consent;
namespace IdentityServerHost.Pages.Ciba;

public class ConsentOptions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@page
@model IdentityServer.Pages.Ciba.IndexModel
@model IdentityServerHost.Pages.Ciba.IndexModel
@{
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;

namespace IdentityServer.Pages.Ciba;
namespace IdentityServerHost.Pages.Ciba;

[AllowAnonymous]
[SecurityHeaders]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Duende Software. All rights reserved.
// See LICENSE in the project root for license information.

namespace IdentityServer.Pages.Ciba;
namespace IdentityServerHost.Pages.Ciba;

public class InputModel
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Duende Software. All rights reserved.
// See LICENSE in the project root for license information.

namespace IdentityServer.Pages.Ciba;
namespace IdentityServerHost.Pages.Ciba;

public class ViewModel
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@using IdentityServer.Pages.Ciba
@using IdentityServerHost.Pages.Ciba
@model ScopeViewModel

<li class="list-group-item">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// See LICENSE in the project root for license information.


namespace IdentityServer.Pages.Ciba;
namespace IdentityServerHost.Pages.Consent;

public class ConsentOptions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@page
@model IdentityServer.Pages.Consent.Index
@model IdentityServerHost.Pages.Consent.Index
@{
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;

namespace IdentityServer.Pages.Consent;
namespace IdentityServerHost.Pages.Consent;

[Authorize]
[SecurityHeadersAttribute]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Duende Software. All rights reserved.
// See LICENSE in the project root for license information.

namespace IdentityServer.Pages.Consent;
namespace IdentityServerHost.Pages.Consent;

public class InputModel
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Duende Software. All rights reserved.
// See LICENSE in the project root for license information.

namespace IdentityServer.Pages.Consent;
namespace IdentityServerHost.Pages.Consent;

public class ViewModel
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@using IdentityServer.Pages.Consent
@using IdentityServerHost.Pages.Consent
@model ScopeViewModel

<li class="list-group-item">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// See LICENSE in the project root for license information.


namespace IdentityServer.Pages.Device;
namespace IdentityServerHost.Pages.Device;

public class DeviceOptions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@page
@model IdentityServer.Pages.Device.Index
@model IdentityServerHost.Pages.Device.Index
@{
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
using Duende.IdentityServer.Models;
using Duende.IdentityServer.Services;
using Duende.IdentityServer.Validation;
using IdentityServer.Pages.Consent;
using IdentityServerHost.Pages.Consent;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Options;

namespace IdentityServer.Pages.Device;
namespace IdentityServerHost.Pages.Device;

[SecurityHeaders]
[Authorize]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace IdentityServer.Pages.Device;
namespace IdentityServerHost.Pages.Device;

public class InputModel
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@page
@model IdentityServer.Pages.Device.SuccessModel
@model IdentityServerHost.Pages.Device.SuccessModel
@{
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc.RazorPages;

namespace IdentityServer.Pages.Device;
namespace IdentityServerHost.Pages.Device;

[SecurityHeaders]
[Authorize]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace IdentityServer.Pages.Device;
namespace IdentityServerHost.Pages.Device;

public class ViewModel
{
Expand Down
Loading

0 comments on commit 4866982

Please sign in to comment.