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
Hello,
First of all thanks for your work!
When using your module I came across "failed to parse JWT" error multiple times. After digging in it turns out that in Authorization header 'bearer' was not in capital letter. According to standards RFC 7235 Section 2.1 the auth-scheme part of an HTTP Authorization header is case-insensitive.
My quickfix was to change this line to if (ngx_strncasecmp(jwtHeaderVal->value.data, (u_char *)BEARER_PREFIX, strlen(BEARER_PREFIX)) == 0)
But I'm no C developer so I believe you could fix it in more elegant way.
Thanks in advance.
The text was updated successfully, but these errors were encountered:
Hello,
First of all thanks for your work!
When using your module I came across "failed to parse JWT" error multiple times. After digging in it turns out that in Authorization header 'bearer' was not in capital letter. According to standards RFC 7235 Section 2.1 the auth-scheme part of an HTTP Authorization header is case-insensitive.
My quickfix was to change this line to
if (ngx_strncasecmp(jwtHeaderVal->value.data, (u_char *)BEARER_PREFIX, strlen(BEARER_PREFIX)) == 0)
But I'm no C developer so I believe you could fix it in more elegant way.
Thanks in advance.
The text was updated successfully, but these errors were encountered: