Skip to content

Commit

Permalink
Merge pull request #1799 from keshavprasadms/release-3.0.0
Browse files Browse the repository at this point in the history
fix: this reverts the kid exists check
  • Loading branch information
rjshrjndrn authored Aug 10, 2020
2 parents 08415b4 + 8183871 commit f071883
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions images/kong/plugins/0.14.1/jwt/handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,6 @@ local function do_authentication(conf)
return responses.send_HTTP_INTERNAL_SERVER_ERROR(err)
end

if not jwt_secret then
-- Restore the key if kid not found and fetch from db
jwt_secret_key = claims[conf.key_claim_name] or header[conf.key_claim_name]
jwt_secret_cache_key = singletons.dao.jwt_secrets:cache_key(jwt_secret_key)
jwt_secret, err = singletons.cache:get(jwt_secret_cache_key, nil,
load_credential, jwt_secret_key)
end

if not jwt_secret then
return false, {status = 403, message = "No credentials found for given '" .. conf.key_claim_name .. "'"}
end
Expand Down

0 comments on commit f071883

Please sign in to comment.