@tsed/oidc-provider-plugin-wildcard-redirect-uri 7.79.4 → 7.80.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/lib/types-esm/OidcWildcardRedirectUriModule.d.ts +21 -0
- package/lib/types-esm/index.d.ts +5 -0
- package/lib/types-esm/utils/wildcardRedirectUriAllowed.d.ts +1 -0
- package/package.json +20 -16
- package/vitest.config.mts +21 -0
- package/jest.config.js +0 -20
- package/lib/cjs/package.json +0 -3
- package/lib/esm/package.json +0 -3
- package/tsconfig.esm.json +0 -54
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Logger } from "@tsed/logger";
|
|
2
|
+
import { OIDC_PROVIDER_NODE_MODULE, OidcSettings } from "@tsed/oidc-provider";
|
|
3
|
+
import type { default as Provider, KoaContextWithOIDC } from "oidc-provider";
|
|
4
|
+
declare global {
|
|
5
|
+
namespace TsED {
|
|
6
|
+
interface OIDCPluginSettings {
|
|
7
|
+
wildcard: {
|
|
8
|
+
enabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export declare class OidcWildcardRedirectUriModule {
|
|
14
|
+
protected module: OIDC_PROVIDER_NODE_MODULE;
|
|
15
|
+
readonly enabled: boolean;
|
|
16
|
+
protected logger: Logger;
|
|
17
|
+
constructor(module: OIDC_PROVIDER_NODE_MODULE);
|
|
18
|
+
$onCreateOIDC(provider: Provider): void;
|
|
19
|
+
$alterOidcConfiguration(config: OidcSettings): Promise<OidcSettings>;
|
|
20
|
+
validator(ctx: KoaContextWithOIDC, key: string, value: any): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function wildcardRedirectUriAllowed(originalRedirectUriAllowed: any, redirectUriOrPostLogoutRedirectUri: "redirectUris" | "postLogoutRedirectUris"): (redirectUri: string) => any;
|
package/package.json
CHANGED
|
@@ -1,44 +1,48 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/oidc-provider-plugin-wildcard-redirect-uri",
|
|
3
|
-
"version": "7.79.4",
|
|
4
3
|
"description": "A plugin to support wildcard in the redirect uri whitelist",
|
|
4
|
+
"type": "commonjs",
|
|
5
|
+
"version": "7.80.0",
|
|
5
6
|
"source": "./src/index.ts",
|
|
6
7
|
"main": "./lib/cjs/index.js",
|
|
7
8
|
"module": "./lib/esm/index.js",
|
|
8
9
|
"typings": "./lib/types/index.d.ts",
|
|
9
10
|
"exports": {
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./lib/types/index.d.ts",
|
|
13
|
+
"import": "./lib/esm/index.js",
|
|
14
|
+
"default": "./lib/cjs/index.js"
|
|
15
|
+
}
|
|
14
16
|
},
|
|
15
17
|
"scripts": {
|
|
16
18
|
"build": "yarn barrels && yarn build:ts",
|
|
17
19
|
"start": "ts-node test/app/index.ts",
|
|
18
20
|
"barrels": "barrels",
|
|
19
|
-
"test": "
|
|
20
|
-
"build:ts": "tsc --build tsconfig.json
|
|
21
|
+
"test": "vitest run",
|
|
22
|
+
"build:ts": "tsc --build tsconfig.json",
|
|
23
|
+
"test:ci": "vitest run --coverage.thresholds.autoUpdate=true"
|
|
21
24
|
},
|
|
22
25
|
"dependencies": {
|
|
23
26
|
"psl": "1.9.0",
|
|
24
27
|
"wildcard": "2.0.0"
|
|
25
28
|
},
|
|
26
29
|
"devDependencies": {
|
|
27
|
-
"@tsed/barrels": "7.
|
|
28
|
-
"@tsed/core": "7.
|
|
29
|
-
"@tsed/di": "7.
|
|
30
|
-
"@tsed/oidc-provider": "7.
|
|
31
|
-
"@tsed/typescript": "7.
|
|
30
|
+
"@tsed/barrels": "7.80.0",
|
|
31
|
+
"@tsed/core": "7.80.0",
|
|
32
|
+
"@tsed/di": "7.80.0",
|
|
33
|
+
"@tsed/oidc-provider": "7.80.0",
|
|
34
|
+
"@tsed/typescript": "7.80.0",
|
|
32
35
|
"@types/psl": "^1.1.3",
|
|
33
36
|
"@types/uuid": "9.0.8",
|
|
34
37
|
"eslint": "^8.57.0",
|
|
35
|
-
"
|
|
38
|
+
"typescript": "4.9.5",
|
|
39
|
+
"vitest": "2.0.4"
|
|
36
40
|
},
|
|
37
41
|
"peerDependencies": {
|
|
38
|
-
"@tsed/core": "7.
|
|
39
|
-
"@tsed/di": "7.
|
|
42
|
+
"@tsed/core": "7.80.0",
|
|
43
|
+
"@tsed/di": "7.80.0",
|
|
40
44
|
"@tsed/logger": ">=6.7.5",
|
|
41
|
-
"@tsed/oidc-provider": "7.
|
|
45
|
+
"@tsed/oidc-provider": "7.80.0",
|
|
42
46
|
"oidc-provider": ">=8.0.0"
|
|
43
47
|
},
|
|
44
48
|
"peerDependenciesMeta": {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
import {presets} from "@tsed/vitest/presets";
|
|
3
|
+
import {defineConfig} from "vitest/config";
|
|
4
|
+
|
|
5
|
+
export default defineConfig(
|
|
6
|
+
{
|
|
7
|
+
...presets,
|
|
8
|
+
test: {
|
|
9
|
+
...presets.test,
|
|
10
|
+
coverage: {
|
|
11
|
+
...presets.test.coverage,
|
|
12
|
+
thresholds: {
|
|
13
|
+
statements: 0,
|
|
14
|
+
branches: 0,
|
|
15
|
+
functions: 0,
|
|
16
|
+
lines: 0
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
);
|
package/jest.config.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// For a detailed explanation regarding each configuration property, visit:
|
|
2
|
-
// https://jestjs.io/docs/en/configuration.html
|
|
3
|
-
|
|
4
|
-
const config = require("@tsed/jest-config");
|
|
5
|
-
|
|
6
|
-
module.exports = {
|
|
7
|
-
...config,
|
|
8
|
-
coverageProvider: "babel",
|
|
9
|
-
roots: ["<rootDir>/src"],
|
|
10
|
-
transformIgnorePatterns: ["^.+\\.module\\.(css|sass|scss)$"],
|
|
11
|
-
|
|
12
|
-
coverageThreshold: {
|
|
13
|
-
global: {
|
|
14
|
-
statements: 0,
|
|
15
|
-
branches: 0,
|
|
16
|
-
functions: 0,
|
|
17
|
-
lines: 0
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
};
|
package/lib/cjs/package.json
DELETED
package/lib/esm/package.json
DELETED
package/tsconfig.esm.json
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "@tsed/typescript/tsconfig.node.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"baseUrl": ".",
|
|
5
|
-
"module": "ES2020",
|
|
6
|
-
"rootDir": "src",
|
|
7
|
-
"outDir": "./lib/esm",
|
|
8
|
-
"declaration": true,
|
|
9
|
-
"declarationDir": "./lib/types",
|
|
10
|
-
"composite": true,
|
|
11
|
-
"noEmit": false
|
|
12
|
-
},
|
|
13
|
-
"include": ["src", "src/**/*.json"],
|
|
14
|
-
"exclude": [
|
|
15
|
-
"node_modules",
|
|
16
|
-
"test",
|
|
17
|
-
"lib",
|
|
18
|
-
"benchmark",
|
|
19
|
-
"coverage",
|
|
20
|
-
"spec",
|
|
21
|
-
"**/*.benchmark.ts",
|
|
22
|
-
"**/*.spec.ts",
|
|
23
|
-
"keys",
|
|
24
|
-
"jest.config.js",
|
|
25
|
-
"**/__mock__/**",
|
|
26
|
-
"webpack.config.js"
|
|
27
|
-
],
|
|
28
|
-
"references": [
|
|
29
|
-
{
|
|
30
|
-
"path": "../../specs/ajv"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"path": "../../platform/common"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"path": "../../core"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"path": "../../di"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"path": "../../specs/json-mapper"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"path": "../../specs/schema"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"path": "../oidc-provider"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"path": "../../specs/exceptions"
|
|
52
|
-
}
|
|
53
|
-
]
|
|
54
|
-
}
|