-
Notifications
You must be signed in to change notification settings - Fork 382
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
Allow creation of a customized header using JsonWebTokenHandler #1210
Comments
FYI, this currently isnt working with RSA-PSS support. I have tried a few branches which have the customized header support on the CreateToken function but all behave the same when using the RSA-PSS algorithm. I will try and dedicate more time to add some tests. or an example repo if the above isnt enough. |
You will see the testin is missing additonal header setup, if this is added im sure the error will occur. - Line 1347 in 1c16adc
|
Hi @steveoshima - There is support for additional header claims, in both dev5x and dev branches. I wasn't able to reproduce the issue you are facing, both on Windows and Mac, using different .net frameworks, even when changing the test as suggested here: #1223 (comment). Please provide us with more information. What exactly is not working? Are you not seeing the additional header claims when you use RSA-PSS claim, or are you unable to create/sign a token? |
Hi, when using public 5.5.0 nuget release it does not allow |
Correct, support for additional header claims is coming in v5.6.0. Is your key an RSAOpenSsl object? |
I'm using nuget packge PemUtils to read in a private key - https://github.com/huysentruitw/pem-utils When is 5.6.0 due for release? would be useful to get asap. Thanks and good work. |
We will release 5.6.0 on Friday or early next week. Can you check if your key is an RSACryptoServiceProvider or an RSAOpenSsl object? |
The private key is generated from RSAOpenSsl object yes. |
Some customers have expressed the need for a facility that allows setting custom attributes in the header part, during token creation.
The text was updated successfully, but these errors were encountered: