mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
fix cached_jwt_verify signature
This commit is contained in:
parent
5eff85928e
commit
46352e6a7f
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ local conf = config.get_config()
|
|||
local cache = ngx.shared.cache
|
||||
|
||||
-- Hash a string using hmac_sha512, return a hexa string
|
||||
function cached_jwt_verify(data, method, secret)
|
||||
function cached_jwt_verify(data, secret)
|
||||
res = cache:get(data)
|
||||
if res == nil then
|
||||
logger:debug("Result not found in cache, checking login")
|
||||
|
@ -96,7 +96,7 @@ function check_authentication()
|
|||
return false, nil, nil
|
||||
end
|
||||
|
||||
user, pwd, err = cached_jwt_verify(cookie, "H256", cookie_secret)
|
||||
user, pwd, err = cached_jwt_verify(cookie, cookie_secret)
|
||||
|
||||
-- FIXME : maybe also check that the cookie was delivered for the requested domain (or a parent?)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue