-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Missing typ field in the header #5
Comments
From what I can tell as well in https://tools.ietf.org/html/rfc7519#section-5.1 it seems like this should just be set to
If that seems correct for all cases, we could just add it here: https://github.com/vapor/jwt-kit/blob/master/Sources/JWTKit/JWTSerializer.swift#L17 If there's some reason why someone should be able to opt out of that or change it, we could have it supplied as a parameter to |
Add `typ` header as parameter making "JWT" the default.
Missing typ field in the header vapor#5
@tanner0101 could you review my PR #27? I'll be very appreciated. |
* Missing typ field in the header #5 Add `typ` header as parameter making "JWT" the default. * Add missing typ, cty fields in the header * Update JWTSigner.swift * minor fix Co-authored-by: Lukas Kasakaitis <[email protected]> Co-authored-by: Maxim Anisimov <[email protected]>
There must be a
typ: "JWT"
field in the header. At least MapKit is giving a warning about it missing.And there is no way to modify header, since it is created in
JWTSerializer
which is internal.The text was updated successfully, but these errors were encountered: