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
In the code above, the comment talks about not handling the case of both x5c and x5u are defined. However, it is possible to get that far down in the code path if both x5c and x5u are nil. Is that supposed to be a different case that should be handled?
According to RFC 7515, both x5c and x5u as header parameters are optional it seems...?
The text was updated successfully, but these errors were encountered:
Alternatively, perhaps the issue is that I called jwt:set_trusted_certs_file(...) and/or jwt:set_x5u_content_retriever(...) when I don't actually need to (as my JWT's header doesn't contain an x5c or an x5u property)?
If that's the case, could the error message be improved to make this clearer and/or some comments get inlined here to clarify this?
Sorry, I'm new to all this JWT stuff so I could just be calling the APIs wrong...
lua-resty-jwt/lib/resty/jwt.lua
Lines 601 to 606 in ee1d024
In the code above, the comment talks about not handling the case of
both x5c and x5u are defined
. However, it is possible to get that far down in the code path if bothx5c
andx5u
arenil
. Is that supposed to be a different case that should be handled?According to RFC 7515, both
x5c
andx5u
as header parameters are optional it seems...?The text was updated successfully, but these errors were encountered: