Skip to content

Commit 80fb9a7

Browse files
committed
fix: update JWT header token and JWKS file path in nginx configuration
1 parent 32c656d commit 80fb9a7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nginx.conf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ http {
1313
content_by_lua_block {
1414
local libjwt = require("resty.libjwt")
1515
local valid, err = libjwt.validate({
16-
["header_token"] = "token",
17-
["jwks_files"] = {"files"},
16+
["header_token"] = "Authorization",
17+
["jwks_files"] = {"/usr/share/tokens/jwks.json"},
1818
})
1919
if err ~= "" then
20-
return ngx.say(err)
20+
return ngx.say(err)
2121
end
2222
if valid then
23-
return ngx.say("OK")
23+
return ngx.say("OK")
2424
end
2525
return ngx.say("Unauthorized")
2626
}

0 commit comments

Comments
 (0)