From 91adc7206ad53520e7e5618ce014d03bffbc0d88 Mon Sep 17 00:00:00 2001 From: Sachin Satav Date: Fri, 3 Nov 2023 16:57:20 +0000 Subject: [PATCH] JTI Claim as a string instead of guid --- .gitignore | 3 +++ src/Okta.Sdk/Client/DefaultJwtGenerator.cs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 7ebc863ee..72572629b 100644 --- a/.gitignore +++ b/.gitignore @@ -365,3 +365,6 @@ FodyWeavers.xsd /tools/docfx.console.2.51.0 /tools/nuget.exe /tools/packages.config.md5sum + +# Rider +.idea/ \ No newline at end of file diff --git a/src/Okta.Sdk/Client/DefaultJwtGenerator.cs b/src/Okta.Sdk/Client/DefaultJwtGenerator.cs index 4036fa54c..2c8f327aa 100644 --- a/src/Okta.Sdk/Client/DefaultJwtGenerator.cs +++ b/src/Okta.Sdk/Client/DefaultJwtGenerator.cs @@ -100,7 +100,7 @@ public string GenerateSignedJWT() { "exp", (int)timeSpanExp.TotalSeconds }, { "iss", _configuration.ClientId }, { "aud", $"{ClientUtils.EnsureTrailingSlash(_configuration.OktaDomain)}oauth2/v1/token" }, - { "jti", Guid.NewGuid() }, + { "jti", Guid.NewGuid().ToString() }, }; var jsonWebKey = new Microsoft.IdentityModel.Tokens.JsonWebKey(JsonConvert.SerializeObject(_configuration.PrivateKey));