From 8b4f73e660e8cd8afd8d9d710fd28c21a8ad59f4 Mon Sep 17 00:00:00 2001
From: Bryan Apellanes <63638027+bryanapellanes-okta@users.noreply.github.com>
Date: Tue, 27 Aug 2024 14:30:36 -0500
Subject: [PATCH] Call ToString() on NewGuid when setting jti (#740)
---
API_README.md | 2 +-
openapi3/config.json | 2 +-
openapi3/templates/DefaultDpopProofJwtGenerator.mustache | 2 +-
src/Okta.Sdk/Client/Configuration.cs | 4 ++--
src/Okta.Sdk/Client/DefaultDpopProofJwtGenerator.cs | 2 +-
src/Okta.Sdk/Okta.Sdk.csproj | 2 +-
6 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/API_README.md b/API_README.md
index 6b85f2bad..a20f14429 100644
--- a/API_README.md
+++ b/API_README.md
@@ -5,7 +5,7 @@ Allows customers to easily access the Okta Management APIs
This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 5.1.0
-- SDK version: 8.1.1
+- SDK version: 8.1.2
- Build package: org.openapitools.codegen.languages.CSharpNetCoreClientCodegen
For more information, please visit [https://developer.okta.com/](https://developer.okta.com/)
diff --git a/openapi3/config.json b/openapi3/config.json
index d744ab1e0..dafaa7e17 100644
--- a/openapi3/config.json
+++ b/openapi3/config.json
@@ -6,7 +6,7 @@
"packageName" : "Okta.Sdk",
"outputDir" : "../",
"inputSpec" : "./management.yaml",
- "packageVersion" : "8.1.1",
+ "packageVersion" : "8.1.2",
"packageDescription" : "Official .NET SDK for the Okta API",
"packageTitle" : "Official .NET SDK for the Okta API",
"packageCompany" : "Okta, Inc.",
diff --git a/openapi3/templates/DefaultDpopProofJwtGenerator.mustache b/openapi3/templates/DefaultDpopProofJwtGenerator.mustache
index debeb9849..bc28be2b7 100644
--- a/openapi3/templates/DefaultDpopProofJwtGenerator.mustache
+++ b/openapi3/templates/DefaultDpopProofJwtGenerator.mustache
@@ -78,7 +78,7 @@ namespace {{packageName}}.Client
{ "htm", httpMethod ?? "POST" },
{ "htu", uri ?? $"{ClientUtils.EnsureTrailingSlash(_configuration.OktaDomain)}oauth2/v1/token" },
{ "iat", (int)timeSpanIat.TotalSeconds },
- { "jti", Guid.NewGuid()}
+ { "jti", Guid.NewGuid().ToString()}
};
if (!nonce.IsNullOrEmpty())
diff --git a/src/Okta.Sdk/Client/Configuration.cs b/src/Okta.Sdk/Client/Configuration.cs
index be06a5bb1..5ffd406ab 100644
--- a/src/Okta.Sdk/Client/Configuration.cs
+++ b/src/Okta.Sdk/Client/Configuration.cs
@@ -39,7 +39,7 @@ public class Configuration : IReadableConfiguration
/// Version of the package.
///
/// Version of the package.
- public const string Version = "8.1.1";
+ public const string Version = "8.1.2";
///
/// Identifier for ISO 8601 DateTime Format
@@ -766,7 +766,7 @@ public static string ToDebugReport()
report += " OS: " + System.Environment.OSVersion + "\n";
report += " .NET Framework Version: " + System.Environment.Version + "\n";
report += " Version of the API: 5.1.0\n";
- report += " SDK Package Version: 8.1.1\n";
+ report += " SDK Package Version: 8.1.2\n";
return report;
}
diff --git a/src/Okta.Sdk/Client/DefaultDpopProofJwtGenerator.cs b/src/Okta.Sdk/Client/DefaultDpopProofJwtGenerator.cs
index bf2ce30b0..673741aa8 100644
--- a/src/Okta.Sdk/Client/DefaultDpopProofJwtGenerator.cs
+++ b/src/Okta.Sdk/Client/DefaultDpopProofJwtGenerator.cs
@@ -87,7 +87,7 @@ public string GenerateJwt(String? nonce = null, String? httpMethod = null, Strin
{ "htm", httpMethod ?? "POST" },
{ "htu", uri ?? $"{ClientUtils.EnsureTrailingSlash(_configuration.OktaDomain)}oauth2/v1/token" },
{ "iat", (int)timeSpanIat.TotalSeconds },
- { "jti", Guid.NewGuid()}
+ { "jti", Guid.NewGuid().ToString()}
};
if (!nonce.IsNullOrEmpty())
diff --git a/src/Okta.Sdk/Okta.Sdk.csproj b/src/Okta.Sdk/Okta.Sdk.csproj
index da25dbfc0..2094e7699 100644
--- a/src/Okta.Sdk/Okta.Sdk.csproj
+++ b/src/Okta.Sdk/Okta.Sdk.csproj
@@ -13,7 +13,7 @@
Official .NET SDK for the Okta API
Okta, Inc.
Okta.Sdk
- 8.1.1
+ 8.1.2
bin\$(Configuration)\$(TargetFramework)\Okta.Sdk.xml
LICENSE
True