Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDX11025: Cannot serialize object of type: 'System.Guid' into property: 'jti'. #737

Closed
pedrollanesbenchmark opened this issue Aug 8, 2024 · 6 comments · Fixed by #740
Closed
Labels

Comments

@pedrollanesbenchmark
Copy link

pedrollanesbenchmark commented Aug 8, 2024

Describe the bug?

Excecption detail:
at Okta.Sdk.Client.DefaultDpopProofJwtGenerator.GenerateJwt(String nonce, String httpMethod, String uri, String accessToken)
at Okta.Sdk.Api.OAuthApi.d__18.MoveNext()
at Okta.Sdk.Api.OAuthApi.d__17.MoveNext()
at Okta.Sdk.Client.DefaultOAuthTokenProvider.d__15.MoveNext()
at Okta.Sdk.Client.DefaultOAuthTokenProvider.d__7.MoveNext()
at Okta.Sdk.Client.DefaultOAuthTokenProvider.d__12.MoveNext()
at Okta.Sdk.Api.UserApi.d__43.MoveNext()
at Okta.Sdk.Api.UserApi.d__42.MoveNext()

What is expected to happen?

it seems that DefaultDpopProofJwtGenerator need to make tostring when it set jti guid.

What is the actual behavior?

It crash

Reproduction Steps?

calling to UserApi

Additional Information?

JTI microsoft is string:
https://learn.microsoft.com/en-us/dotnet/api/system.identitymodel.tokens.jwt.jwtpayload.jti?view=msal-web-dotnet-latest#system-identitymodel-tokens-jwt-jwtpayload-jti

.NET Version

netcore8

SDK Version

8.0.1

OS version

BuildNumber Caption OSArchitecture Version
19045 Microsoft Windows 10 Enterprise 64-bit 10.0.19045

@bryanapellanes-okta
Copy link
Contributor

@pedrollanesbenchmark Thanks for bringing this to our attention! I've opened an internal issue for tracking and prioritization OKTA-791311. We will work with Developer Support to address your support case and resolve this issue.

@bryanapellanes-okta
Copy link
Contributor

This appears to be a duplicate of #682

@pedrollanesbenchmark
Copy link
Author

pedrollanesbenchmark commented Aug 8, 2024

No @bryanapellanes-okta , there is not the same case. The problem in my wrote issue is in class DefaultDpopProofJwtGenerator, and the solution in this solution is DefaultJwtGenerator.cs class, not the same. Thanks

@pedrollanesbenchmark
Copy link
Author

For more info:

The Okta SDK use Microsoft Identity Model >= v6.35.0. If I then upgrade the version of that package to v7.1.2 I get the same error.

@pedrollanesbenchmark
Copy link
Author

pedrollanesbenchmark commented Aug 9, 2024

@pedrollanesbenchmark Thanks for bringing this to our attention! I've opened an internal issue for tracking and prioritization OKTA-791311. We will work with Developer Support to address your support case and resolve this issue.

Good morning @bryanapellanes-okta any news?

@bhavik-thakkar-okta
Copy link

Hey @pedrollanesbenchmark thanks for your follow-up. We have currently added this on to our priority list and we will prioritize this accordingly and we will get back to you once its added to our sprint scope for some concrete timelines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants