Skip to content

Commit

Permalink
fix: ensure decrypted request object is accessed in PAR responses
Browse files Browse the repository at this point in the history
fixes #813
  • Loading branch information
panva committed Nov 8, 2020
1 parent 05c32d1 commit 09751d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/actions/authorization/process_request_object.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ module.exports = async function processRequestObject(PARAM_LIST, rejectDupesMidd
decrypted = await JWT.decrypt(params.request, keystore);
}

params.request = decrypted.toString('utf8');
// eslint-disable-next-line no-multi-assign
ctx.oidc.body = params.request = decrypted.toString('utf8');
} catch (err) {
if (err instanceof OIDCProviderError) {
throw err;
Expand Down

0 comments on commit 09751d7

Please sign in to comment.