You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was fixed for fromAuthHeaderWithScheme in #118 but is still an issue in fromHeader.
EDIT: on closer inspection, the fix of #118 only makes the scheme case-insensitive. This issue still applies to fromAuthHeaderWithScheme as it assumes the authorization header to be lower case.
The text was updated successfully, but these errors were encountered:
ExtractJwt.fromHeader() isn't case-insensitive, because it tries to read the header with the given name without lowercasing it beforehand.
In the headers map, the names are in lowercase and the parameter value header_name therefore also needs to be in lowercase.
A solution would be to call header_name.toLowerCase().
HTTP headers are case insensitive (see https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2).
This was fixed forfromAuthHeaderWithScheme
in #118 but is still an issue infromHeader
.EDIT: on closer inspection, the fix of #118 only makes the scheme case-insensitive. This issue still applies to
fromAuthHeaderWithScheme
as it assumes the authorization header to be lower case.The text was updated successfully, but these errors were encountered: