@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@muze-nl/metro-oidc",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "oidc client middleware for @muze-nl/metro",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": [
|
|
@@ -49,6 +49,6 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@muze-nl/assert": "^0.3.3",
|
|
51
51
|
"@muze-nl/metro": "^0.6.5",
|
|
52
|
-
"@muze-nl/metro-oauth2": "^0.
|
|
52
|
+
"@muze-nl/metro-oauth2": "^0.6.0"
|
|
53
53
|
}
|
|
54
54
|
}
|
package/src/oidcmw.mjs
CHANGED
|
@@ -97,13 +97,6 @@ export default function oidcmw(options={}) {
|
|
|
97
97
|
}
|
|
98
98
|
//...
|
|
99
99
|
)
|
|
100
|
-
|
|
101
|
-
const pkceSupported = options.openid_configuration.code_challenge_methods_supported.length
|
|
102
|
-
if (pkceSupported) {
|
|
103
|
-
delete oauth2Options.oauth2_configuration.client_secret
|
|
104
|
-
} else {
|
|
105
|
-
oauth2Options.oauth2_configuration.code_verifier = false
|
|
106
|
-
}
|
|
107
100
|
|
|
108
101
|
const storeIdToken = async (req, next) => {
|
|
109
102
|
const res = await next(req)
|