-
Notifications
You must be signed in to change notification settings - Fork 186
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
In version 3.1.0 System.OverflowException is thrown if kid header is set to long #157
Comments
Just as an additional information, the exception is thrown if we try to read the headers from the token with Maybe that wasn't completely clear from the above code and description. |
Thanks @isenmann , i'll take a look. Seems newtonsoft changes broke some things. |
@isenmann , please find it on nuget https://www.nuget.org/packages/jose-jwt/3.1.1 Would appreciate if you can try it and come back with feedback so we can close issue. Also i'd probably try to get rid of newtonsoft in v3.2 in favor of System.Text.Json (aka #130) for netcore 3+. May be something to watch out for. |
Thanks for the new version, I will try it and give you feedback as soon as possible.... |
My integration tests work without any problem, so your fix resolved the issue. Thanks for the fast fix and keep up the good work! |
Since version 3.1.0 an OverflowException is thrown because the kid header is set to a long value. In version 3.0.0 this works. The exception is the following:
Our token is generated like this:
According to the changes to NewtonSoftMapper.cs the value is converted to Int32 here and we didn't find any restriction in the RFC that the kid header is limited to Int32.
Do we miss something here?
Thanks for any information.
Cheers
Daniel
The text was updated successfully, but these errors were encountered: