From 8e7b7ad452818aafff3660bbd916a3859876b929 Mon Sep 17 00:00:00 2001
From: Josh Hurley <53570882+joshongithub@users.noreply.github.com>
Date: Thu, 4 Apr 2024 17:57:46 -0400
Subject: [PATCH 1/3] Updated to use .NET 8 and updated JWT Libraries
.NET 7 will not longer be supported on 2024-05-14. I updated to .NET 8 which is supported until 2026-11-10.
The Microsoft.IdentityModel.Tokens and System.IdentityModel.Tokens.Jwt packages were out-of-date, one with a security warning. I updated to latest secure versions.
---
source/DoorDashAPIWinFormsApp.csproj | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/source/DoorDashAPIWinFormsApp.csproj b/source/DoorDashAPIWinFormsApp.csproj
index 27f9652..873c535 100644
--- a/source/DoorDashAPIWinFormsApp.csproj
+++ b/source/DoorDashAPIWinFormsApp.csproj
@@ -2,15 +2,15 @@
WinExe
- net7.0-windows
+ net8.0-windows10.0.17763.0
enable
true
enable
-
-
+
+
\ No newline at end of file
From c85828ac787b61bc73eb8dbd236ed244df3e3c6d Mon Sep 17 00:00:00 2001
From: Josh Hurley <53570882+joshongithub@users.noreply.github.com>
Date: Thu, 4 Apr 2024 18:00:37 -0400
Subject: [PATCH 2/3] Update README.md to reference .NET 8
Updated references to .NET 8 from .NET 7 to match code changes.
---
README.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index 82e4fd1..5cf6a66 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,11 @@
# DoorDash API Windows Forms Sample App
This sample application illustrates the three parts of the DoorDash JWT. It builds a token that is valid for 30 minutes. Please obtain a set of DoorDash Credentials (Developer ID, Key ID, and Signing Secret) in the [DoorDash Developer Portal](https://developer.doordash.com/portal/integration/drive/credentials) to use in the application.
-This application targets [.NET 7](https://dotnet.microsoft.com/en-us/download/dotnet/7.0) and requires a Windows OS to run. The code source and build files provided in this repository are samples and not intended for production and are not supported.
+This application targets [.NET 8](https://dotnet.microsoft.com/en-us/download/dotnet/8.0) and requires a Windows OS to run. The code source and build files provided in this repository are samples and not intended for production and are not supported.
## Running Sample
Follow these steps to run the sample app:
-1. Install the [.NET 7](https://dotnet.microsoft.com/en-us/download/dotnet/7.0) runtime or SDK.
+1. Install the [.NET 8](https://dotnet.microsoft.com/en-us/download/dotnet/8.0) runtime or SDK.
2. Unzip the DoorDashAPIWinFormsApp.zip file in a local folder on a Windows machine.
3. Double click DoorDashAPIWinFormsApp.exe from the uncompressed folder.
4. Provide the DoorDash Credentials (Developer ID, Key ID, and Signing Secret) created in the [DoorDash Developer Portal](https://developer.doordash.com/portal/integration/drive/credentials).
@@ -13,7 +13,7 @@ Follow these steps to run the sample app:
## Build Sample App with the .NET CLI
Follow these steps to build the sample app with the .NET CLI:
-1. Install the [.NET 7](https://dotnet.microsoft.com/en-us/download/dotnet/7.0) SDK (includes the .NET CLI).
+1. Install the [.NET 8](https://dotnet.microsoft.com/en-us/download/dotnet/8.0) SDK (includes the .NET CLI).
2. Clone this repo to local folder or download and the files in the source folder into a local directory.
3. Open a command window and change the directory to folder that folder that contains the source files
4. Run the following command: ``dotnet build``
@@ -21,7 +21,7 @@ Follow these steps to build the sample app with the .NET CLI:
## Build Sample App with Visual Studio
Follow these steps to build the sample app with Visual Studio:
-1. Install the [.NET 7](https://dotnet.microsoft.com/en-us/download/dotnet/7.0) SDK (includes the .NET CLI).
+1. Install the [.NET 8](https://dotnet.microsoft.com/en-us/download/dotnet/8.0) SDK (includes the .NET CLI).
2. Install Visual Studio 2022 (Community, Professional, or Enterprise).
3. Clone this repo to local folder or download and the files in the source folder into a local directory.
4. Open the **DoorDashAPIWinFormsApp.csproj** project in Visual Studio.
From 031063d5772c67178d0b905576000850e5543332 Mon Sep 17 00:00:00 2001
From: Josh Hurley <26821102+jmhmaine@users.noreply.github.com>
Date: Fri, 5 Apr 2024 14:23:03 -0400
Subject: [PATCH 3/3] Update JwtCreateForm.cs
Fixed Typo
---
source/JwtCreateForm.cs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/source/JwtCreateForm.cs b/source/JwtCreateForm.cs
index a8b18d8..28489dc 100644
--- a/source/JwtCreateForm.cs
+++ b/source/JwtCreateForm.cs
@@ -52,7 +52,7 @@ private void SetDefaultValues()
private void UpdateJWT()
{
- // Do not run update if user provided values are note valid.
+ // Do not run update if user provided values are not valid.
// Note, function doesn't test if values provided are correct size.
if (!UserProvidedValuesValid())
{
@@ -128,4 +128,4 @@ private void SigningSecretTextBox_Leave(object sender, EventArgs e)
UpdateJWT();
}
}
-}
\ No newline at end of file
+}