Skip to content

Missing error return? #20

@afshinpir

Description

@afshinpir

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions