We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a38fec1 + e361e97 commit aadf7bcCopy full SHA for aadf7bc
1 file changed
lib/jwtverify.lua
@@ -274,13 +274,15 @@ core.register_init(function()
274
275
-- when using an RS256 signature
276
local publicKeyPath = os.getenv("OAUTH_PUBKEY_PATH")
277
- local pem = readAll(publicKeyPath)
278
- config.publicKey = pem
+ if publicKeyPath ~= nil then
+ local pem = readAll(publicKeyPath)
279
+ config.publicKey = pem
280
+ end
281
282
-- when using an HS256 or HS512 signature
283
config.hmacSecret = os.getenv("OAUTH_HMAC_SECRET")
284
- log("PublicKeyPath: " .. publicKeyPath)
285
+ log("PublicKeyPath: " .. (publicKeyPath or "<none>"))
286
log("Issuer: " .. (config.issuer or "<none>"))
287
log("Audience: " .. (config.audience or "<none>"))
288
end)
0 commit comments