Skip to content

Commit

Permalink
Call ToString() on NewGuid when setting jti (#740)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanapellanes-okta authored Aug 27, 2024
1 parent 8145aac commit 8b4f73e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion API_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)

Expand Down
2 changes: 1 addition & 1 deletion openapi3/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
2 changes: 1 addition & 1 deletion openapi3/templates/DefaultDpopProofJwtGenerator.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
4 changes: 2 additions & 2 deletions src/Okta.Sdk/Client/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class Configuration : IReadableConfiguration
/// Version of the package.
/// </summary>
/// <value>Version of the package.</value>
public const string Version = "8.1.1";
public const string Version = "8.1.2";

/// <summary>
/// Identifier for ISO 8601 DateTime Format
Expand Down Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Okta.Sdk/Client/DefaultDpopProofJwtGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
2 changes: 1 addition & 1 deletion src/Okta.Sdk/Okta.Sdk.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<Description>Official .NET SDK for the Okta API</Description>
<Copyright>Okta, Inc.</Copyright>
<RootNamespace>Okta.Sdk</RootNamespace>
<Version>8.1.1</Version>
<Version>8.1.2</Version>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\Okta.Sdk.xml</DocumentationFile>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
Expand Down

0 comments on commit 8b4f73e

Please sign in to comment.