From 7386f071c5c2d9464ac30edf36a4d61fa880f010 Mon Sep 17 00:00:00 2001 From: Joe DeCock Date: Mon, 20 Nov 2023 10:41:45 -0600 Subject: [PATCH 1/9] Update BFF/TokenExchange to .NET 8 --- IdentityServer/v7/BFF/TokenExchange/.vscode/launch.json | 6 +++--- .../TokenExchange.Api/TokenExchange.Api.csproj | 8 ++++---- .../TokenExchange.Bff/TokenExchange.Bff.csproj | 8 ++++---- .../TokenExchange.IdentityServer.csproj | 6 +++--- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/IdentityServer/v7/BFF/TokenExchange/.vscode/launch.json b/IdentityServer/v7/BFF/TokenExchange/.vscode/launch.json index 7b39ed0a..554ff3d5 100644 --- a/IdentityServer/v7/BFF/TokenExchange/.vscode/launch.json +++ b/IdentityServer/v7/BFF/TokenExchange/.vscode/launch.json @@ -16,7 +16,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "build-identityserver", - "program": "${workspaceFolder}/TokenExchange.IdentityServer/bin/Debug/net6.0/TokenExchange.IdentityServer.dll", + "program": "${workspaceFolder}/TokenExchange.IdentityServer/bin/Debug/net8.0/TokenExchange.IdentityServer.dll", "args": [], "cwd": "${workspaceFolder}/TokenExchange.IdentityServer", "env": { @@ -29,7 +29,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "build-api", - "program": "${workspaceFolder}/TokenExchange.Api/bin/Debug/net6.0/TokenExchange.Api.dll", + "program": "${workspaceFolder}/TokenExchange.Api/bin/Debug/net8.0/TokenExchange.Api.dll", "args": [], "cwd": "${workspaceFolder}/TokenExchange.Api", "env": { @@ -42,7 +42,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "build-bff", - "program": "${workspaceFolder}/TokenExchange.Bff/bin/Debug/net6.0/TokenExchange.Bff.dll", + "program": "${workspaceFolder}/TokenExchange.Bff/bin/Debug/net8.0/TokenExchange.Bff.dll", "args": [], "cwd": "${workspaceFolder}/TokenExchange.Bff", "env": { diff --git a/IdentityServer/v7/BFF/TokenExchange/TokenExchange.Api/TokenExchange.Api.csproj b/IdentityServer/v7/BFF/TokenExchange/TokenExchange.Api/TokenExchange.Api.csproj index 0df1fc8f..150e3691 100644 --- a/IdentityServer/v7/BFF/TokenExchange/TokenExchange.Api/TokenExchange.Api.csproj +++ b/IdentityServer/v7/BFF/TokenExchange/TokenExchange.Api/TokenExchange.Api.csproj @@ -1,12 +1,12 @@ - net6.0 + net8.0 - - - + + + diff --git a/IdentityServer/v7/BFF/TokenExchange/TokenExchange.Bff/TokenExchange.Bff.csproj b/IdentityServer/v7/BFF/TokenExchange/TokenExchange.Bff/TokenExchange.Bff.csproj index 02c5913e..6f61d3d7 100644 --- a/IdentityServer/v7/BFF/TokenExchange/TokenExchange.Bff/TokenExchange.Bff.csproj +++ b/IdentityServer/v7/BFF/TokenExchange/TokenExchange.Bff/TokenExchange.Bff.csproj @@ -1,15 +1,15 @@ - net6.0 + net8.0 Host6 enable - - - + + + diff --git a/IdentityServer/v7/BFF/TokenExchange/TokenExchange.IdentityServer/TokenExchange.IdentityServer.csproj b/IdentityServer/v7/BFF/TokenExchange/TokenExchange.IdentityServer/TokenExchange.IdentityServer.csproj index 67d1ca34..1d20deb5 100644 --- a/IdentityServer/v7/BFF/TokenExchange/TokenExchange.IdentityServer/TokenExchange.IdentityServer.csproj +++ b/IdentityServer/v7/BFF/TokenExchange/TokenExchange.IdentityServer/TokenExchange.IdentityServer.csproj @@ -1,13 +1,13 @@  - net6.0 + net8.0 true - - + + \ No newline at end of file From 15eeae2245b10edc7590c7d607962282276264ab Mon Sep 17 00:00:00 2001 From: Joe DeCock Date: Tue, 16 Jan 2024 10:38:08 -0600 Subject: [PATCH 2/9] Update BFF/JsBff to .NET 8 --- .../v7/BFF/JsBffSample/.vscode/launch.json | 46 +++++++++++++++++++ .../v7/BFF/JsBffSample/.vscode/tasks.json | 43 +++++++++++++++++ .../BackendApiHost/BackendApiHost.csproj | 4 +- .../FrontendHost/FrontendHost.csproj | 8 ++-- .../BFF/JsBffSample/FrontendHost/Startup.cs | 2 +- .../FrontendHost/wwwroot/StyleSheet.css | 8 ++++ .../FrontendHost/wwwroot/index.html | 2 +- 7 files changed, 105 insertions(+), 8 deletions(-) create mode 100644 IdentityServer/v7/BFF/JsBffSample/.vscode/launch.json create mode 100644 IdentityServer/v7/BFF/JsBffSample/.vscode/tasks.json diff --git a/IdentityServer/v7/BFF/JsBffSample/.vscode/launch.json b/IdentityServer/v7/BFF/JsBffSample/.vscode/launch.json new file mode 100644 index 00000000..1c88912c --- /dev/null +++ b/IdentityServer/v7/BFF/JsBffSample/.vscode/launch.json @@ -0,0 +1,46 @@ +{ + "version": "0.2.0", + "compounds": [ + { + "name": "Run All", + "configurations": ["BFF", "API"], + "presentation": { + "hidden": false, + "group": "", + "order": 1 + } + } + ], + "configurations": [ + { + "name": "API", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build-api", + "program": "${workspaceFolder}/BackendApiHost/bin/Debug/net8.0/BackendApiHost.dll", + "args": [], + "cwd": "${workspaceFolder}/BackendApiHost", + "env": { + "ASPNETCORE_ENVIRONMENT": "Development" + }, + "console": "externalTerminal", + }, + { + "name": "BFF", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build-bff", + "program": "${workspaceFolder}/FrontendHost/bin/Debug/net8.0/FrontendHost.dll", + "args": [], + "cwd": "${workspaceFolder}/FrontendHost", + "env": { + "ASPNETCORE_ENVIRONMENT": "Development" + }, + "serverReadyAction": { + "action": "openExternally", + "pattern": "\\bNow listening on:\\s+(https?://\\S+)" + }, + "console": "externalTerminal", + } + ] +} \ No newline at end of file diff --git a/IdentityServer/v7/BFF/JsBffSample/.vscode/tasks.json b/IdentityServer/v7/BFF/JsBffSample/.vscode/tasks.json new file mode 100644 index 00000000..76fc570f --- /dev/null +++ b/IdentityServer/v7/BFF/JsBffSample/.vscode/tasks.json @@ -0,0 +1,43 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "type": "process", + "command": "dotnet", + "args": [ + "build", + "${workspaceFolder}/JsBffSample.sln", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "build-api", + "type": "process", + "command": "dotnet", + "args": [ + "build", + "${workspaceFolder}\\BackendApiHost\\BackendApiHost.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "build-bff", + "type": "process", + "command": "dotnet", + "args": [ + "build", + "${workspaceFolder}\\FrontendHost\\FrontendHost.csproj", + + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + } + ] + +} \ No newline at end of file diff --git a/IdentityServer/v7/BFF/JsBffSample/BackendApiHost/BackendApiHost.csproj b/IdentityServer/v7/BFF/JsBffSample/BackendApiHost/BackendApiHost.csproj index caaa4d17..d9ea4a9d 100755 --- a/IdentityServer/v7/BFF/JsBffSample/BackendApiHost/BackendApiHost.csproj +++ b/IdentityServer/v7/BFF/JsBffSample/BackendApiHost/BackendApiHost.csproj @@ -1,11 +1,11 @@ - net6.0 + net8.0 - + diff --git a/IdentityServer/v7/BFF/JsBffSample/FrontendHost/FrontendHost.csproj b/IdentityServer/v7/BFF/JsBffSample/FrontendHost/FrontendHost.csproj index 0384adfb..ec29ea05 100755 --- a/IdentityServer/v7/BFF/JsBffSample/FrontendHost/FrontendHost.csproj +++ b/IdentityServer/v7/BFF/JsBffSample/FrontendHost/FrontendHost.csproj @@ -1,14 +1,14 @@  - net6.0 + net8.0 - - + + - + diff --git a/IdentityServer/v7/BFF/JsBffSample/FrontendHost/Startup.cs b/IdentityServer/v7/BFF/JsBffSample/FrontendHost/Startup.cs index ee9b127b..91ae1953 100755 --- a/IdentityServer/v7/BFF/JsBffSample/FrontendHost/Startup.cs +++ b/IdentityServer/v7/BFF/JsBffSample/FrontendHost/Startup.cs @@ -73,7 +73,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env) app.UseEndpoints(endpoints => { endpoints.MapBffManagementEndpoints(); - + // if you want the TODOs API local endpoints.MapControllers() .RequireAuthorization() diff --git a/IdentityServer/v7/BFF/JsBffSample/FrontendHost/wwwroot/StyleSheet.css b/IdentityServer/v7/BFF/JsBffSample/FrontendHost/wwwroot/StyleSheet.css index 70d4ba6a..e03c74af 100755 --- a/IdentityServer/v7/BFF/JsBffSample/FrontendHost/wwwroot/StyleSheet.css +++ b/IdentityServer/v7/BFF/JsBffSample/FrontendHost/wwwroot/StyleSheet.css @@ -39,4 +39,12 @@ pre:empty { } .buttons{ float:right; +} + +table#session-info { + table-layout: fixed; +} + +table#session-info td { + overflow: clip; } \ No newline at end of file diff --git a/IdentityServer/v7/BFF/JsBffSample/FrontendHost/wwwroot/index.html b/IdentityServer/v7/BFF/JsBffSample/FrontendHost/wwwroot/index.html index 4a823baf..d51ea3f5 100755 --- a/IdentityServer/v7/BFF/JsBffSample/FrontendHost/wwwroot/index.html +++ b/IdentityServer/v7/BFF/JsBffSample/FrontendHost/wwwroot/index.html @@ -68,7 +68,7 @@

Add New