Skip to content

Commit 3dc960f

Browse files
committed
Fix #157 : Update Id token in session after refreshing tokens
1 parent 2c99890 commit 3dc960f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/resty/openidc.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,8 @@ end
840840
--
841841
local function openidc_load_and_validate_jwt_id_token(opts, jwt_id_token, session)
842842

843-
local jwt_obj, err = openidc_load_jwt_and_verify_crypto(opts, jwt_id_token, opts.secret, opts.client_secret)
843+
local jwt_obj, err = openidc_load_jwt_and_verify_crypto(opts, jwt_id_token, opts.secret, opts.client_secret,
844+
opts.discovery.id_token_signing_alg_values_supported)
844845
if err then
845846
local alg = (jwt_obj and jwt_obj.header and jwt_obj.header.alg) or ''
846847
local is_unsupported_signature_error = jwt_obj and not jwt_obj.verified and not is_algorithm_supported(jwt_obj.header)

0 commit comments

Comments
 (0)