Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apisix/plugins/jwt-auth.lua
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ local function find_consumer(conf, ctx)
", key claim name: ", conf.key_claim_name)

local key_claim_name = conf.key_claim_name
local user_key = jwt.payload and jwt.payload[key_claim_name]
local user_key = (jwt.payload and jwt.payload[key_claim_name]) or (jwt.header and jwt.header[key_claim_name])
if not user_key then
return nil, nil, "missing user key in JWT token"
end
Expand Down
Loading