Skip to content

Commit

Permalink
fix: build client symmetric keys from all client signing alg properties
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Nov 30, 2022
1 parent 76d7455 commit a26f87d
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion lib/models/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,20 @@ module.exports = function getClient(provider) {
}
});

instance(provider).configuration('requestObjectSigningAlgValues').forEach(Set.prototype.add.bind(algs));
[
'introspectionSignedResponseAlg',
'userinfoSignedResponseAlg',
'authorizationSignedResponseAlg',
'idTokenSignedResponseAlg',
'requestObjectSigningAlg',
].forEach((prop) => {
algs.add(client[prop]);
});

if (!client.requestObjectSigningAlg) {
instance(provider).configuration('requestObjectSigningAlgValues').forEach(Set.prototype.add.bind(algs));
}

instance(provider).configuration('requestObjectEncryptionAlgValues').forEach(Set.prototype.add.bind(algs));

if (instance(provider).configuration('requestObjectEncryptionAlgValues').includes('dir')) {
Expand Down

0 comments on commit a26f87d

Please sign in to comment.