jose-jwt icon indicating copy to clipboard operation
jose-jwt copied to clipboard

extraHeaders not adding to headers in jwt token

Open michaelakin opened this issue 2 years ago • 4 comments

I added an extraHeader and it did not appear when i put the token into jwt.io. Also, if you try to override the "alg" header it is supposed to throw an exception and it does not.

michaelakin avatar Apr 29 '22 15:04 michaelakin

Nevermind, I removed the JWT package and now it works, but it still does not throw that exception if you add the alg to the extra headers.

michaelakin avatar Apr 29 '22 16:04 michaelakin

'alg' / 'enc' in extra headers documented here: https://github.com/dvsekhvalnov/jose-jwt#adding-extra-headers

Can you post your code that doesn't include additional headers?

dvsekhvalnov avatar Apr 29 '22 18:04 dvsekhvalnov

I tried in a fresh app and could not re-create. In the original app, I removed the other JWT nuget package the headers started showing up.

michaelakin avatar Apr 29 '22 19:04 michaelakin

Glad it working, feel free to close then :)

dvsekhvalnov avatar May 03 '22 10:05 dvsekhvalnov