diff --git a/IdentityServer/v7/Basics/MvcPar/MvcPar.AppHost/AppHost.cs b/IdentityServer/v7/Basics/MvcPar/MvcPar.AppHost/AppHost.cs new file mode 100644 index 00000000..16c47d96 --- /dev/null +++ b/IdentityServer/v7/Basics/MvcPar/MvcPar.AppHost/AppHost.cs @@ -0,0 +1,11 @@ +var builder = DistributedApplication.CreateBuilder(args); + +var idp = builder.AddProject("identityserverhost"); + +var api = builder.AddProject("simple-api"); + +builder.AddProject("client") + .WaitFor(idp) + .WaitFor(api); + +builder.Build().Run(); diff --git a/IdentityServer/v7/Basics/MvcPar/MvcPar.AppHost/MvcPar.AppHost.csproj b/IdentityServer/v7/Basics/MvcPar/MvcPar.AppHost/MvcPar.AppHost.csproj new file mode 100644 index 00000000..24b935cc --- /dev/null +++ b/IdentityServer/v7/Basics/MvcPar/MvcPar.AppHost/MvcPar.AppHost.csproj @@ -0,0 +1,16 @@ + + + Exe + net10.0 + enable + enable + + + + + + + + + + diff --git a/IdentityServer/v7/Basics/MvcPar/MvcPar.AppHost/Properties/launchSettings.json b/IdentityServer/v7/Basics/MvcPar/MvcPar.AppHost/Properties/launchSettings.json new file mode 100644 index 00000000..878381cd --- /dev/null +++ b/IdentityServer/v7/Basics/MvcPar/MvcPar.AppHost/Properties/launchSettings.json @@ -0,0 +1,27 @@ +{ + "$schema": "https://json.schemastore.org/launchsettings.json", + "profiles": { + "http": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "applicationUrl": "http://localhost:15237", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development", + "DOTNET_DASHBOARD_OTLP_ENDPOINT_URL": "http://localhost:21137", + "DOTNET_RESOURCE_SERVICE_ENDPOINT_URL": "http://localhost:22137" + } + }, + "https": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "applicationUrl": "https://localhost:17237;http://localhost:15237", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development", + "DOTNET_DASHBOARD_OTLP_ENDPOINT_URL": "https://localhost:21137", + "DOTNET_RESOURCE_SERVICE_ENDPOINT_URL": "https://localhost:22137" + } + } + } +} diff --git a/IdentityServer/v7/Basics/MvcPar/MvcPar.AppHost/appsettings.Development.json b/IdentityServer/v7/Basics/MvcPar/MvcPar.AppHost/appsettings.Development.json new file mode 100644 index 00000000..c06aa74a --- /dev/null +++ b/IdentityServer/v7/Basics/MvcPar/MvcPar.AppHost/appsettings.Development.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning", + "Aspire.Hosting.DistributedApplication": "Information" + } + } +} diff --git a/IdentityServer/v7/Basics/MvcPar/MvcPar.AppHost/appsettings.json b/IdentityServer/v7/Basics/MvcPar/MvcPar.AppHost/appsettings.json new file mode 100644 index 00000000..c06aa74a --- /dev/null +++ b/IdentityServer/v7/Basics/MvcPar/MvcPar.AppHost/appsettings.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning", + "Aspire.Hosting.DistributedApplication": "Information" + } + } +} diff --git a/IdentityServer/v7/Basics/MvcPar/MvcPar.sln b/IdentityServer/v7/Basics/MvcPar/MvcPar.sln index 82b7b027..ba9a26b0 100644 --- a/IdentityServer/v7/Basics/MvcPar/MvcPar.sln +++ b/IdentityServer/v7/Basics/MvcPar/MvcPar.sln @@ -9,24 +9,68 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SimpleApi", "..\..\Apis\Sim EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IdentityServerHost", "..\..\IdentityServerHost\src\IdentityServerHost.csproj", "{FBD7DB82-BFB4-46BB-89C1-31F40939D922}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MvcPar.AppHost", "MvcPar.AppHost\MvcPar.AppHost.csproj", "{B0D6F82D-1FD4-49B2-88F3-6541EFC32EC3}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{827E0CD3-B72D-47B6-A68D-7590B98EB39B}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {8A7B3FC1-BD45-4679-A3D9-FE2E06F783CF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {8A7B3FC1-BD45-4679-A3D9-FE2E06F783CF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8A7B3FC1-BD45-4679-A3D9-FE2E06F783CF}.Debug|x64.ActiveCfg = Debug|Any CPU + {8A7B3FC1-BD45-4679-A3D9-FE2E06F783CF}.Debug|x64.Build.0 = Debug|Any CPU + {8A7B3FC1-BD45-4679-A3D9-FE2E06F783CF}.Debug|x86.ActiveCfg = Debug|Any CPU + {8A7B3FC1-BD45-4679-A3D9-FE2E06F783CF}.Debug|x86.Build.0 = Debug|Any CPU {8A7B3FC1-BD45-4679-A3D9-FE2E06F783CF}.Release|Any CPU.ActiveCfg = Release|Any CPU {8A7B3FC1-BD45-4679-A3D9-FE2E06F783CF}.Release|Any CPU.Build.0 = Release|Any CPU + {8A7B3FC1-BD45-4679-A3D9-FE2E06F783CF}.Release|x64.ActiveCfg = Release|Any CPU + {8A7B3FC1-BD45-4679-A3D9-FE2E06F783CF}.Release|x64.Build.0 = Release|Any CPU + {8A7B3FC1-BD45-4679-A3D9-FE2E06F783CF}.Release|x86.ActiveCfg = Release|Any CPU + {8A7B3FC1-BD45-4679-A3D9-FE2E06F783CF}.Release|x86.Build.0 = Release|Any CPU {44F9FF5C-87F4-4CB9-8175-4E3D39328702}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {44F9FF5C-87F4-4CB9-8175-4E3D39328702}.Debug|Any CPU.Build.0 = Debug|Any CPU + {44F9FF5C-87F4-4CB9-8175-4E3D39328702}.Debug|x64.ActiveCfg = Debug|Any CPU + {44F9FF5C-87F4-4CB9-8175-4E3D39328702}.Debug|x64.Build.0 = Debug|Any CPU + {44F9FF5C-87F4-4CB9-8175-4E3D39328702}.Debug|x86.ActiveCfg = Debug|Any CPU + {44F9FF5C-87F4-4CB9-8175-4E3D39328702}.Debug|x86.Build.0 = Debug|Any CPU {44F9FF5C-87F4-4CB9-8175-4E3D39328702}.Release|Any CPU.ActiveCfg = Release|Any CPU {44F9FF5C-87F4-4CB9-8175-4E3D39328702}.Release|Any CPU.Build.0 = Release|Any CPU + {44F9FF5C-87F4-4CB9-8175-4E3D39328702}.Release|x64.ActiveCfg = Release|Any CPU + {44F9FF5C-87F4-4CB9-8175-4E3D39328702}.Release|x64.Build.0 = Release|Any CPU + {44F9FF5C-87F4-4CB9-8175-4E3D39328702}.Release|x86.ActiveCfg = Release|Any CPU + {44F9FF5C-87F4-4CB9-8175-4E3D39328702}.Release|x86.Build.0 = Release|Any CPU {FBD7DB82-BFB4-46BB-89C1-31F40939D922}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {FBD7DB82-BFB4-46BB-89C1-31F40939D922}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FBD7DB82-BFB4-46BB-89C1-31F40939D922}.Debug|x64.ActiveCfg = Debug|Any CPU + {FBD7DB82-BFB4-46BB-89C1-31F40939D922}.Debug|x64.Build.0 = Debug|Any CPU + {FBD7DB82-BFB4-46BB-89C1-31F40939D922}.Debug|x86.ActiveCfg = Debug|Any CPU + {FBD7DB82-BFB4-46BB-89C1-31F40939D922}.Debug|x86.Build.0 = Debug|Any CPU {FBD7DB82-BFB4-46BB-89C1-31F40939D922}.Release|Any CPU.ActiveCfg = Release|Any CPU {FBD7DB82-BFB4-46BB-89C1-31F40939D922}.Release|Any CPU.Build.0 = Release|Any CPU + {FBD7DB82-BFB4-46BB-89C1-31F40939D922}.Release|x64.ActiveCfg = Release|Any CPU + {FBD7DB82-BFB4-46BB-89C1-31F40939D922}.Release|x64.Build.0 = Release|Any CPU + {FBD7DB82-BFB4-46BB-89C1-31F40939D922}.Release|x86.ActiveCfg = Release|Any CPU + {FBD7DB82-BFB4-46BB-89C1-31F40939D922}.Release|x86.Build.0 = Release|Any CPU + {B0D6F82D-1FD4-49B2-88F3-6541EFC32EC3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B0D6F82D-1FD4-49B2-88F3-6541EFC32EC3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B0D6F82D-1FD4-49B2-88F3-6541EFC32EC3}.Debug|x64.ActiveCfg = Debug|Any CPU + {B0D6F82D-1FD4-49B2-88F3-6541EFC32EC3}.Debug|x64.Build.0 = Debug|Any CPU + {B0D6F82D-1FD4-49B2-88F3-6541EFC32EC3}.Debug|x86.ActiveCfg = Debug|Any CPU + {B0D6F82D-1FD4-49B2-88F3-6541EFC32EC3}.Debug|x86.Build.0 = Debug|Any CPU + {B0D6F82D-1FD4-49B2-88F3-6541EFC32EC3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B0D6F82D-1FD4-49B2-88F3-6541EFC32EC3}.Release|Any CPU.Build.0 = Release|Any CPU + {B0D6F82D-1FD4-49B2-88F3-6541EFC32EC3}.Release|x64.ActiveCfg = Release|Any CPU + {B0D6F82D-1FD4-49B2-88F3-6541EFC32EC3}.Release|x64.Build.0 = Release|Any CPU + {B0D6F82D-1FD4-49B2-88F3-6541EFC32EC3}.Release|x86.ActiveCfg = Release|Any CPU + {B0D6F82D-1FD4-49B2-88F3-6541EFC32EC3}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/IdentityServer/v7/Basics/MvcPar/src/Client.csproj b/IdentityServer/v7/Basics/MvcPar/src/Client.csproj index fe6b0b91..cf82ad60 100644 --- a/IdentityServer/v7/Basics/MvcPar/src/Client.csproj +++ b/IdentityServer/v7/Basics/MvcPar/src/Client.csproj @@ -2,6 +2,7 @@ net10.0 + enable @@ -10,6 +11,10 @@ + + + + diff --git a/IdentityServer/v7/Basics/MvcPar/src/Program.cs b/IdentityServer/v7/Basics/MvcPar/src/Program.cs index 208739d5..f59d5305 100644 --- a/IdentityServer/v7/Basics/MvcPar/src/Program.cs +++ b/IdentityServer/v7/Basics/MvcPar/src/Program.cs @@ -14,6 +14,8 @@ var builder = WebApplication.CreateBuilder(args); +builder.AddServiceDefaults(); + builder.Services.AddTransient(); builder.Services.AddSingleton(_ => new DiscoveryCache(Urls.IdentityServer)); @@ -83,6 +85,8 @@ var app = builder.Build(); +app.MapDefaultEndpoints(); + app.UseDeveloperExceptionPage(); app.UseHttpsRedirection(); app.UseStaticFiles(); diff --git a/IdentityServer/v8/Basics/MvcPar/MvcPar.AppHost/AppHost.cs b/IdentityServer/v8/Basics/MvcPar/MvcPar.AppHost/AppHost.cs new file mode 100644 index 00000000..16c47d96 --- /dev/null +++ b/IdentityServer/v8/Basics/MvcPar/MvcPar.AppHost/AppHost.cs @@ -0,0 +1,11 @@ +var builder = DistributedApplication.CreateBuilder(args); + +var idp = builder.AddProject("identityserverhost"); + +var api = builder.AddProject("simple-api"); + +builder.AddProject("client") + .WaitFor(idp) + .WaitFor(api); + +builder.Build().Run(); diff --git a/IdentityServer/v8/Basics/MvcPar/MvcPar.AppHost/MvcPar.AppHost.csproj b/IdentityServer/v8/Basics/MvcPar/MvcPar.AppHost/MvcPar.AppHost.csproj new file mode 100644 index 00000000..24b935cc --- /dev/null +++ b/IdentityServer/v8/Basics/MvcPar/MvcPar.AppHost/MvcPar.AppHost.csproj @@ -0,0 +1,16 @@ + + + Exe + net10.0 + enable + enable + + + + + + + + + + diff --git a/IdentityServer/v8/Basics/MvcPar/MvcPar.AppHost/Properties/launchSettings.json b/IdentityServer/v8/Basics/MvcPar/MvcPar.AppHost/Properties/launchSettings.json new file mode 100644 index 00000000..9148f634 --- /dev/null +++ b/IdentityServer/v8/Basics/MvcPar/MvcPar.AppHost/Properties/launchSettings.json @@ -0,0 +1,27 @@ +{ + "$schema": "https://json.schemastore.org/launchsettings.json", + "profiles": { + "http": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "applicationUrl": "http://localhost:15238", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development", + "DOTNET_DASHBOARD_OTLP_ENDPOINT_URL": "http://localhost:21138", + "DOTNET_RESOURCE_SERVICE_ENDPOINT_URL": "http://localhost:22138" + } + }, + "https": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "applicationUrl": "https://localhost:17238;http://localhost:15238", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development", + "DOTNET_DASHBOARD_OTLP_ENDPOINT_URL": "https://localhost:21138", + "DOTNET_RESOURCE_SERVICE_ENDPOINT_URL": "https://localhost:22138" + } + } + } +} diff --git a/IdentityServer/v8/Basics/MvcPar/MvcPar.AppHost/appsettings.Development.json b/IdentityServer/v8/Basics/MvcPar/MvcPar.AppHost/appsettings.Development.json new file mode 100644 index 00000000..c06aa74a --- /dev/null +++ b/IdentityServer/v8/Basics/MvcPar/MvcPar.AppHost/appsettings.Development.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning", + "Aspire.Hosting.DistributedApplication": "Information" + } + } +} diff --git a/IdentityServer/v8/Basics/MvcPar/MvcPar.AppHost/appsettings.json b/IdentityServer/v8/Basics/MvcPar/MvcPar.AppHost/appsettings.json new file mode 100644 index 00000000..c06aa74a --- /dev/null +++ b/IdentityServer/v8/Basics/MvcPar/MvcPar.AppHost/appsettings.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning", + "Aspire.Hosting.DistributedApplication": "Information" + } + } +} diff --git a/IdentityServer/v8/Basics/MvcPar/MvcPar.sln b/IdentityServer/v8/Basics/MvcPar/MvcPar.sln index 82b7b027..3f54a118 100644 --- a/IdentityServer/v8/Basics/MvcPar/MvcPar.sln +++ b/IdentityServer/v8/Basics/MvcPar/MvcPar.sln @@ -9,24 +9,68 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SimpleApi", "..\..\Apis\Sim EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IdentityServerHost", "..\..\IdentityServerHost\src\IdentityServerHost.csproj", "{FBD7DB82-BFB4-46BB-89C1-31F40939D922}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MvcPar.AppHost", "MvcPar.AppHost\MvcPar.AppHost.csproj", "{7BFAAFA5-AA88-4779-8E38-8F3AAFF0D0FA}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{827E0CD3-B72D-47B6-A68D-7590B98EB39B}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {8A7B3FC1-BD45-4679-A3D9-FE2E06F783CF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {8A7B3FC1-BD45-4679-A3D9-FE2E06F783CF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8A7B3FC1-BD45-4679-A3D9-FE2E06F783CF}.Debug|x64.ActiveCfg = Debug|Any CPU + {8A7B3FC1-BD45-4679-A3D9-FE2E06F783CF}.Debug|x64.Build.0 = Debug|Any CPU + {8A7B3FC1-BD45-4679-A3D9-FE2E06F783CF}.Debug|x86.ActiveCfg = Debug|Any CPU + {8A7B3FC1-BD45-4679-A3D9-FE2E06F783CF}.Debug|x86.Build.0 = Debug|Any CPU {8A7B3FC1-BD45-4679-A3D9-FE2E06F783CF}.Release|Any CPU.ActiveCfg = Release|Any CPU {8A7B3FC1-BD45-4679-A3D9-FE2E06F783CF}.Release|Any CPU.Build.0 = Release|Any CPU + {8A7B3FC1-BD45-4679-A3D9-FE2E06F783CF}.Release|x64.ActiveCfg = Release|Any CPU + {8A7B3FC1-BD45-4679-A3D9-FE2E06F783CF}.Release|x64.Build.0 = Release|Any CPU + {8A7B3FC1-BD45-4679-A3D9-FE2E06F783CF}.Release|x86.ActiveCfg = Release|Any CPU + {8A7B3FC1-BD45-4679-A3D9-FE2E06F783CF}.Release|x86.Build.0 = Release|Any CPU {44F9FF5C-87F4-4CB9-8175-4E3D39328702}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {44F9FF5C-87F4-4CB9-8175-4E3D39328702}.Debug|Any CPU.Build.0 = Debug|Any CPU + {44F9FF5C-87F4-4CB9-8175-4E3D39328702}.Debug|x64.ActiveCfg = Debug|Any CPU + {44F9FF5C-87F4-4CB9-8175-4E3D39328702}.Debug|x64.Build.0 = Debug|Any CPU + {44F9FF5C-87F4-4CB9-8175-4E3D39328702}.Debug|x86.ActiveCfg = Debug|Any CPU + {44F9FF5C-87F4-4CB9-8175-4E3D39328702}.Debug|x86.Build.0 = Debug|Any CPU {44F9FF5C-87F4-4CB9-8175-4E3D39328702}.Release|Any CPU.ActiveCfg = Release|Any CPU {44F9FF5C-87F4-4CB9-8175-4E3D39328702}.Release|Any CPU.Build.0 = Release|Any CPU + {44F9FF5C-87F4-4CB9-8175-4E3D39328702}.Release|x64.ActiveCfg = Release|Any CPU + {44F9FF5C-87F4-4CB9-8175-4E3D39328702}.Release|x64.Build.0 = Release|Any CPU + {44F9FF5C-87F4-4CB9-8175-4E3D39328702}.Release|x86.ActiveCfg = Release|Any CPU + {44F9FF5C-87F4-4CB9-8175-4E3D39328702}.Release|x86.Build.0 = Release|Any CPU {FBD7DB82-BFB4-46BB-89C1-31F40939D922}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {FBD7DB82-BFB4-46BB-89C1-31F40939D922}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FBD7DB82-BFB4-46BB-89C1-31F40939D922}.Debug|x64.ActiveCfg = Debug|Any CPU + {FBD7DB82-BFB4-46BB-89C1-31F40939D922}.Debug|x64.Build.0 = Debug|Any CPU + {FBD7DB82-BFB4-46BB-89C1-31F40939D922}.Debug|x86.ActiveCfg = Debug|Any CPU + {FBD7DB82-BFB4-46BB-89C1-31F40939D922}.Debug|x86.Build.0 = Debug|Any CPU {FBD7DB82-BFB4-46BB-89C1-31F40939D922}.Release|Any CPU.ActiveCfg = Release|Any CPU {FBD7DB82-BFB4-46BB-89C1-31F40939D922}.Release|Any CPU.Build.0 = Release|Any CPU + {FBD7DB82-BFB4-46BB-89C1-31F40939D922}.Release|x64.ActiveCfg = Release|Any CPU + {FBD7DB82-BFB4-46BB-89C1-31F40939D922}.Release|x64.Build.0 = Release|Any CPU + {FBD7DB82-BFB4-46BB-89C1-31F40939D922}.Release|x86.ActiveCfg = Release|Any CPU + {FBD7DB82-BFB4-46BB-89C1-31F40939D922}.Release|x86.Build.0 = Release|Any CPU + {7BFAAFA5-AA88-4779-8E38-8F3AAFF0D0FA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7BFAAFA5-AA88-4779-8E38-8F3AAFF0D0FA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7BFAAFA5-AA88-4779-8E38-8F3AAFF0D0FA}.Debug|x64.ActiveCfg = Debug|Any CPU + {7BFAAFA5-AA88-4779-8E38-8F3AAFF0D0FA}.Debug|x64.Build.0 = Debug|Any CPU + {7BFAAFA5-AA88-4779-8E38-8F3AAFF0D0FA}.Debug|x86.ActiveCfg = Debug|Any CPU + {7BFAAFA5-AA88-4779-8E38-8F3AAFF0D0FA}.Debug|x86.Build.0 = Debug|Any CPU + {7BFAAFA5-AA88-4779-8E38-8F3AAFF0D0FA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7BFAAFA5-AA88-4779-8E38-8F3AAFF0D0FA}.Release|Any CPU.Build.0 = Release|Any CPU + {7BFAAFA5-AA88-4779-8E38-8F3AAFF0D0FA}.Release|x64.ActiveCfg = Release|Any CPU + {7BFAAFA5-AA88-4779-8E38-8F3AAFF0D0FA}.Release|x64.Build.0 = Release|Any CPU + {7BFAAFA5-AA88-4779-8E38-8F3AAFF0D0FA}.Release|x86.ActiveCfg = Release|Any CPU + {7BFAAFA5-AA88-4779-8E38-8F3AAFF0D0FA}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/IdentityServer/v8/Basics/MvcPar/src/Client.csproj b/IdentityServer/v8/Basics/MvcPar/src/Client.csproj index 313610da..1e5b2d0c 100644 --- a/IdentityServer/v8/Basics/MvcPar/src/Client.csproj +++ b/IdentityServer/v8/Basics/MvcPar/src/Client.csproj @@ -2,6 +2,7 @@ net10.0 + enable @@ -10,6 +11,10 @@ + + + + diff --git a/IdentityServer/v8/Basics/MvcPar/src/Program.cs b/IdentityServer/v8/Basics/MvcPar/src/Program.cs index 208739d5..f59d5305 100644 --- a/IdentityServer/v8/Basics/MvcPar/src/Program.cs +++ b/IdentityServer/v8/Basics/MvcPar/src/Program.cs @@ -14,6 +14,8 @@ var builder = WebApplication.CreateBuilder(args); +builder.AddServiceDefaults(); + builder.Services.AddTransient(); builder.Services.AddSingleton(_ => new DiscoveryCache(Urls.IdentityServer)); @@ -83,6 +85,8 @@ var app = builder.Build(); +app.MapDefaultEndpoints(); + app.UseDeveloperExceptionPage(); app.UseHttpsRedirection(); app.UseStaticFiles(); diff --git a/samples.slnx b/samples.slnx index 107988ea..1a98e7b5 100644 --- a/samples.slnx +++ b/samples.slnx @@ -227,6 +227,7 @@ + @@ -455,6 +456,7 @@ +