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

extraHeaders not adding to headers in jwt token #184

Open
michaelakin opened this issue Apr 29, 2022 · 4 comments
Open

extraHeaders not adding to headers in jwt token #184

michaelakin opened this issue Apr 29, 2022 · 4 comments

Comments

@michaelakin
Copy link

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 michaelakin changed the title extraHeaders do not seem to be working. extraHeaders not adding to headers in jwt token Apr 29, 2022
@michaelakin
Copy link
Author

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.

@dvsekhvalnov
Copy link
Owner

dvsekhvalnov commented Apr 29, 2022

'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?

@michaelakin
Copy link
Author

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.

@dvsekhvalnov
Copy link
Owner

Glad it working, feel free to close then :)

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

No branches or pull requests

2 participants