@tsed/oidc-provider-plugin-wildcard-redirect-uri 8.26.0 → 8.26.2
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.
|
@@ -7,8 +7,9 @@ const hasWildcardHost = (redirectUri) => {
|
|
|
7
7
|
const wildcardMatches = (redirectUri, wildcardUri) => !!wildcard(wildcardUri, redirectUri);
|
|
8
8
|
export function wildcardRedirectUriAllowed(originalRedirectUriAllowed, redirectUriOrPostLogoutRedirectUri) {
|
|
9
9
|
return function (redirectUri) {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
const uris = this[redirectUriOrPostLogoutRedirectUri] || [];
|
|
11
|
+
if (uris.some(hasWildcardHost)) {
|
|
12
|
+
const wildcardUris = uris.filter(hasWildcardHost);
|
|
12
13
|
return wildcardUris.some(wildcardMatches.bind(undefined, redirectUri)) || originalRedirectUriAllowed.call(this, redirectUri);
|
|
13
14
|
}
|
|
14
15
|
return originalRedirectUriAllowed.call(this, redirectUri);
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
export declare function wildcardRedirectUriAllowed(originalRedirectUriAllowed: any, redirectUriOrPostLogoutRedirectUri: "redirectUris" | "postLogoutRedirectUris"): (
|
|
1
|
+
export declare function wildcardRedirectUriAllowed(originalRedirectUriAllowed: any, redirectUriOrPostLogoutRedirectUri: "redirectUris" | "postLogoutRedirectUris"): (this: {
|
|
2
|
+
redirectUris?: string[];
|
|
3
|
+
postLogoutRedirectUris?: string[];
|
|
4
|
+
}, redirectUri: string) => any;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@tsed/oidc-provider-plugin-wildcard-redirect-uri",
|
|
3
3
|
"description": "A plugin to support wildcard in the redirect uri whitelist",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "8.26.
|
|
5
|
+
"version": "8.26.2",
|
|
6
6
|
"source": "./src/index.ts",
|
|
7
7
|
"main": "./lib/esm/index.js",
|
|
8
8
|
"module": "./lib/esm/index.js",
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
"wildcard": "2.0.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@tsed/barrels": "8.26.
|
|
32
|
-
"@tsed/core": "8.26.
|
|
33
|
-
"@tsed/di": "8.26.
|
|
34
|
-
"@tsed/oidc-provider": "8.26.
|
|
35
|
-
"@tsed/typescript": "8.26.
|
|
31
|
+
"@tsed/barrels": "8.26.2",
|
|
32
|
+
"@tsed/core": "8.26.2",
|
|
33
|
+
"@tsed/di": "8.26.2",
|
|
34
|
+
"@tsed/oidc-provider": "8.26.2",
|
|
35
|
+
"@tsed/typescript": "8.26.2",
|
|
36
36
|
"@types/psl": "^1.1.3",
|
|
37
37
|
"@types/uuid": "10.0.0",
|
|
38
38
|
"eslint": "9.12.0",
|
|
39
|
-
"typescript": "
|
|
39
|
+
"typescript": "6.0.2",
|
|
40
40
|
"vitest": "3.2.4"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|