@muze-nl/metro-oidc 0.3.6 → 0.4.0
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/dist/browser.js +4 -8
- package/dist/browser.js.map +2 -2
- package/dist/browser.min.js +1 -1
- package/dist/browser.min.js.map +2 -2
- package/package.json +2 -2
- package/src/oidcmw.mjs +0 -7
package/dist/browser.js
CHANGED
|
@@ -1097,7 +1097,8 @@
|
|
|
1097
1097
|
options.tokens.set("code_verifier", oauth22.code_verifier);
|
|
1098
1098
|
search.code_challenge = await generateCodeChallenge(oauth22.code_verifier);
|
|
1099
1099
|
search.code_challenge_method = "S256";
|
|
1100
|
-
}
|
|
1100
|
+
}
|
|
1101
|
+
if (oauth22.client_secret) {
|
|
1101
1102
|
search.client_secret = oauth22.client_secret;
|
|
1102
1103
|
}
|
|
1103
1104
|
if (oauth22.scope) {
|
|
@@ -1124,7 +1125,8 @@
|
|
|
1124
1125
|
const code_verifier = options.tokens.get("code_verifier");
|
|
1125
1126
|
if (code_verifier) {
|
|
1126
1127
|
params2.code_verifier = code_verifier;
|
|
1127
|
-
}
|
|
1128
|
+
}
|
|
1129
|
+
if (oauth22.client_secret) {
|
|
1128
1130
|
params2.client_secret = oauth22.client_secret;
|
|
1129
1131
|
}
|
|
1130
1132
|
if (oauth22.scope) {
|
|
@@ -2048,12 +2050,6 @@
|
|
|
2048
2050
|
}
|
|
2049
2051
|
//...
|
|
2050
2052
|
);
|
|
2051
|
-
const pkceSupported = options.openid_configuration.code_challenge_methods_supported.length;
|
|
2052
|
-
if (pkceSupported) {
|
|
2053
|
-
delete oauth2Options.oauth2_configuration.client_secret;
|
|
2054
|
-
} else {
|
|
2055
|
-
oauth2Options.oauth2_configuration.code_verifier = false;
|
|
2056
|
-
}
|
|
2057
2053
|
const storeIdToken = async (req2, next2) => {
|
|
2058
2054
|
const res2 = await next2(req2);
|
|
2059
2055
|
const contentType = res2.headers.get("content-type");
|