Skip to content

Commit a26f87d

Browse files
committed
fix: build client symmetric keys from all client signing alg properties
1 parent 76d7455 commit a26f87d

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

lib/models/client.js

+14-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,20 @@ module.exports = function getClient(provider) {
309309
}
310310
});
311311

312-
instance(provider).configuration('requestObjectSigningAlgValues').forEach(Set.prototype.add.bind(algs));
312+
[
313+
'introspectionSignedResponseAlg',
314+
'userinfoSignedResponseAlg',
315+
'authorizationSignedResponseAlg',
316+
'idTokenSignedResponseAlg',
317+
'requestObjectSigningAlg',
318+
].forEach((prop) => {
319+
algs.add(client[prop]);
320+
});
321+
322+
if (!client.requestObjectSigningAlg) {
323+
instance(provider).configuration('requestObjectSigningAlgValues').forEach(Set.prototype.add.bind(algs));
324+
}
325+
313326
instance(provider).configuration('requestObjectEncryptionAlgValues').forEach(Set.prototype.add.bind(algs));
314327

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

0 commit comments

Comments
 (0)