@tsed/cli-plugin-oidc-provider 4.5.2 → 4.5.3
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/cjs/CliPluginOidcProviderModule.js.map +1 -1
- package/lib/cjs/hooks/OidcProviderInitHook.js +1 -1
- package/lib/cjs/hooks/OidcProviderInitHook.js.map +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/utils/templateDir.js +1 -2
- package/lib/cjs/utils/templateDir.js.map +1 -1
- package/lib/esm/CliPluginOidcProviderModule.js.map +1 -1
- package/lib/esm/hooks/OidcProviderInitHook.js +1 -1
- package/lib/esm/hooks/OidcProviderInitHook.js.map +1 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/utils/templateDir.js +5 -4
- package/lib/esm/utils/templateDir.js.map +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/lib/types/hooks/OidcProviderInitHook.d.ts +1 -1
- package/package.json +16 -8
- package/templates/init/src/controllers/oidc/InteractionsController.ts +1 -1
- package/templates/init/src/interactions/AbortInteraction.ts +1 -1
- package/templates/init/src/models/Account.ts +1 -1
- package/templates/init/src/services/Accounts.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/cli-plugin-oidc-provider",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.3",
|
|
4
4
|
"description": "Ts.ED CLI plugin. Add OIDC Provider",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"main": "./lib/cjs/index.js",
|
|
@@ -13,9 +13,11 @@
|
|
|
13
13
|
"default": "./lib/esm/index.js"
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
|
-
"build": "yarn
|
|
17
|
-
"build:
|
|
18
|
-
"
|
|
16
|
+
"build": "yarn build:ts",
|
|
17
|
+
"build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json && cp scripts/templateDir.esm.js lib/esm/utils/templateDir.js",
|
|
18
|
+
"lint": "eslint '**/*.{ts,js}'",
|
|
19
|
+
"lint:fix": "eslint '**/*.{ts,js}' --fix",
|
|
20
|
+
"test": "cross-env NODE_ENV=test yarn jest --max-workers=2 --passWithNoTests && jest-coverage-thresholds-bumper"
|
|
19
21
|
},
|
|
20
22
|
"files": [
|
|
21
23
|
"lib",
|
|
@@ -25,12 +27,18 @@
|
|
|
25
27
|
"tslib": "2.3.1"
|
|
26
28
|
},
|
|
27
29
|
"devDependencies": {
|
|
28
|
-
"@tsed/cli": "4.5.
|
|
29
|
-
"@tsed/cli-core": "4.5.
|
|
30
|
+
"@tsed/cli": "4.5.3",
|
|
31
|
+
"@tsed/cli-core": "4.5.3",
|
|
32
|
+
"@tsed/eslint": "4.5.3",
|
|
33
|
+
"@tsed/jest-config": "4.5.3",
|
|
34
|
+
"@tsed/typescript": "4.5.3",
|
|
35
|
+
"cross-env": "7.0.3",
|
|
36
|
+
"eslint": "8.22.0",
|
|
37
|
+
"jest": "29.5.0"
|
|
30
38
|
},
|
|
31
39
|
"peerDependencies": {
|
|
32
|
-
"@tsed/cli": "^4.5.
|
|
33
|
-
"@tsed/cli-core": "^4.5.
|
|
40
|
+
"@tsed/cli": "^4.5.3",
|
|
41
|
+
"@tsed/cli-core": "^4.5.3"
|
|
34
42
|
},
|
|
35
43
|
"repository": "https://github.com/tsedio/tsed-cli",
|
|
36
44
|
"bugs": {
|
|
@@ -10,7 +10,7 @@ import * as interactions from "../../interactions/index";
|
|
|
10
10
|
})
|
|
11
11
|
export class InteractionsController {
|
|
12
12
|
@Get("/:name?")
|
|
13
|
-
|
|
13
|
+
promptInteraction(@PathParams("name") name: string | undefined, @OidcCtx() oidcCtx: OidcCtx) {
|
|
14
14
|
return oidcCtx.runInteraction();
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -12,7 +12,7 @@ export class AbortInteraction implements InteractionMethods {
|
|
|
12
12
|
oidc: OidcProvider;
|
|
13
13
|
|
|
14
14
|
@View("interaction")
|
|
15
|
-
|
|
15
|
+
$prompt(@OidcCtx() oidcCtx: OidcCtx): Promise<any> {
|
|
16
16
|
return oidcCtx.interactionFinished(
|
|
17
17
|
{
|
|
18
18
|
error: "access_denied",
|
|
@@ -25,11 +25,11 @@ export class Accounts implements OidcAccountsMethods {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
findAccount(id: string) {
|
|
29
29
|
return this.adapter.findById(id);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
authenticate(email: string) {
|
|
33
33
|
return this.adapter.findOne({email});
|
|
34
34
|
}
|
|
35
35
|
}
|