openid-client 5.1.0 → 5.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.js +1 -1
- package/lib/helpers/keystore.js +2 -2
- package/lib/helpers/pick.js +1 -1
- package/package.json +2 -2
package/lib/client.js
CHANGED
package/lib/helpers/keystore.js
CHANGED
|
@@ -39,7 +39,7 @@ const keyscore = (key, { alg, use }) => {
|
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
function getKtyFromAlg(alg) {
|
|
42
|
-
switch (typeof alg === 'string' && alg.
|
|
42
|
+
switch (typeof alg === 'string' && alg.slice(0, 2)) {
|
|
43
43
|
case 'RS':
|
|
44
44
|
case 'PS':
|
|
45
45
|
return 'RSA';
|
|
@@ -68,7 +68,7 @@ function getAlgorithms(use, alg, kty, crv) {
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
if (use === 'sig' || use === undefined) {
|
|
71
|
-
algs = algs.concat([`ES${crv.
|
|
71
|
+
algs = algs.concat([`ES${crv.slice(-3)}`.replace('21', '12')]);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
return new Set(algs);
|
package/lib/helpers/pick.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openid-client",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.1",
|
|
4
4
|
"description": "OpenID Connect Relying Party (RP, Client) implementation for Node.js runtime, supports passportjs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"auth",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
"type": "fix",
|
|
87
|
-
"section": "
|
|
87
|
+
"section": "Fixes"
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
"type": "chore",
|