Hi
I was going through the code and I noticed this line:
|
if (key) { |
|
if (jwt_verify_sig(ctx->jwt, (char *) ctx->token, ctx->payload_len, |
|
(unsigned char *) key, strlen(key)) == 0) { |
|
ctx->verified = 1; |
|
return ngx_http_auth_jwt_validate_variable(r, cf, ctx); |
|
} |
|
|
|
ngx_log_error(NGX_LOG_INFO, r->connection->log, 0, |
|
"auth_jwt: rejected due to signature validate failure" |
|
": kid=\"%s\"", kid); |
|
} |
Shouldn't be a
return NGX_ERROR; after
ngx_log_error here?
Best Regards
Hi
I was going through the code and I noticed this line:
nginx-auth-jwt/src/ngx_http_auth_jwt_module.c
Lines 2052 to 2062 in 72548c2
Shouldn't be a
return NGX_ERROR;afterngx_log_errorhere?Best Regards