@tsed/oidc-provider 6.100.2 → 6.102.1
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/.mocharc.js +2 -2
- package/package.json +13 -13
- package/readme.md +27 -31
- package/tsconfig.compile.esm.json +1 -12
package/.mocharc.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/oidc-provider",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.102.1",
|
|
4
4
|
"description": "OIDC provider package for Ts.ED framework",
|
|
5
5
|
"private": false,
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"test": "cross-env NODE_ENV=test nyc mocha"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@tsed/adapters": "6.
|
|
23
|
+
"@tsed/adapters": "6.102.1",
|
|
24
24
|
"express-urlrewrite": "^1.4.0",
|
|
25
25
|
"jose2": "npm:jose@^2.0.4",
|
|
26
26
|
"koa-mount": "^4.0.0",
|
|
@@ -30,24 +30,24 @@
|
|
|
30
30
|
"uuid": "8.3.2"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@tsed/common": "6.
|
|
34
|
-
"@tsed/core": "6.
|
|
35
|
-
"@tsed/di": "6.
|
|
36
|
-
"@tsed/exceptions": "6.
|
|
33
|
+
"@tsed/common": "6.102.1",
|
|
34
|
+
"@tsed/core": "6.102.1",
|
|
35
|
+
"@tsed/di": "6.102.1",
|
|
36
|
+
"@tsed/exceptions": "6.102.1",
|
|
37
37
|
"@types/lowdb": "1.0.9",
|
|
38
38
|
"@types/oidc-provider": "^7.1.1",
|
|
39
39
|
"@types/uuid": "8.3.0",
|
|
40
40
|
"oidc-provider": "7.10.1"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@tsed/common": "^6.
|
|
44
|
-
"@tsed/core": "^6.
|
|
45
|
-
"@tsed/di": "^6.
|
|
46
|
-
"@tsed/exceptions": "^6.
|
|
47
|
-
"@tsed/json-mapper": "^6.
|
|
43
|
+
"@tsed/common": "^6.102.1",
|
|
44
|
+
"@tsed/core": "^6.102.1",
|
|
45
|
+
"@tsed/di": "^6.102.1",
|
|
46
|
+
"@tsed/exceptions": "^6.102.1",
|
|
47
|
+
"@tsed/json-mapper": "^6.102.1",
|
|
48
48
|
"@tsed/logger": ">=6.0.0",
|
|
49
|
-
"@tsed/openspec": "^6.
|
|
50
|
-
"@tsed/schema": "^6.
|
|
49
|
+
"@tsed/openspec": "^6.102.1",
|
|
50
|
+
"@tsed/schema": "^6.102.1",
|
|
51
51
|
"oidc-provider": ">=7.3.0"
|
|
52
52
|
},
|
|
53
53
|
"repository": "https://github.com/tsedio/tsed",
|
package/readme.md
CHANGED
|
@@ -32,7 +32,7 @@ A package of Ts.ED framework. See website: https://tsed.io/tutorials/oidc-provid
|
|
|
32
32
|
## Feature
|
|
33
33
|
|
|
34
34
|
Currently, `@tsed/oidc-provider` allows you:
|
|
35
|
-
|
|
35
|
+
|
|
36
36
|
- Configure the server with [oidc-provider](https://github.com/panva/node-oidc-provider)
|
|
37
37
|
- Configure Clients and Accounts classes to manage clients and accounts
|
|
38
38
|
- Configure an adapter to connect your oidc to any database
|
|
@@ -42,6 +42,7 @@ Currently, `@tsed/oidc-provider` allows you:
|
|
|
42
42
|
## Installation
|
|
43
43
|
|
|
44
44
|
To begin, install the oidc-provider module for TS.ED:
|
|
45
|
+
|
|
45
46
|
```bash
|
|
46
47
|
npm install --save @tsed/oidc-provider
|
|
47
48
|
npm install --save oidc-provider
|
|
@@ -58,35 +59,32 @@ import {MemoryAdapter} from "../adapters/MemoryAdapter";
|
|
|
58
59
|
export const rootDir = __dirname;
|
|
59
60
|
|
|
60
61
|
@Configuration({
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
62
|
+
oidc: {
|
|
63
|
+
jwksPath: `${rootDir}/../keys/jwks.json`, // don't forget add this path to .gitignore
|
|
64
|
+
Adapter: MemoryAdapter,
|
|
65
|
+
Accounts: Accounts,
|
|
66
|
+
// Clients: Clients,
|
|
67
|
+
clients: [
|
|
68
|
+
{
|
|
69
|
+
client_id: "client_id",
|
|
70
|
+
client_secret: "client_secret",
|
|
71
|
+
redirect_uris: ["https://host.fr/"]
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
options: {
|
|
75
|
+
// Oidc-provider options See https://github.com/panva/node-oidc-provider/blob/master/docs/README.md
|
|
76
|
+
formats: {
|
|
77
|
+
AccessToken: "jwt"
|
|
78
|
+
},
|
|
79
|
+
features: {
|
|
80
|
+
encryption: {enabled: true},
|
|
81
|
+
introspection: {enabled: true},
|
|
82
|
+
revocation: {enabled: true}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
86
|
})
|
|
87
|
-
export class Server {
|
|
88
|
-
|
|
89
|
-
}
|
|
87
|
+
export class Server {}
|
|
90
88
|
```
|
|
91
89
|
|
|
92
90
|
## Contributors
|
|
@@ -95,14 +93,12 @@ Please read [contributing guidelines here](https://tsed.io/CONTRIBUTING.html)
|
|
|
95
93
|
|
|
96
94
|
<a href="https://github.com/tsedio/ts-express-decorators/graphs/contributors"><img src="https://opencollective.com/tsed/contributors.svg?width=890" /></a>
|
|
97
95
|
|
|
98
|
-
|
|
99
96
|
## Backers
|
|
100
97
|
|
|
101
98
|
Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/tsed#backer)]
|
|
102
99
|
|
|
103
100
|
<a href="https://opencollective.com/tsed#backers" target="_blank"><img src="https://opencollective.com/tsed/backers.svg?width=890"></a>
|
|
104
101
|
|
|
105
|
-
|
|
106
102
|
## Sponsors
|
|
107
103
|
|
|
108
104
|
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/tsed#sponsor)]
|
|
@@ -8,16 +8,5 @@
|
|
|
8
8
|
"declaration": true,
|
|
9
9
|
"declarationDir": "./lib/types"
|
|
10
10
|
},
|
|
11
|
-
"exclude": [
|
|
12
|
-
"node_modules",
|
|
13
|
-
"test",
|
|
14
|
-
"lib",
|
|
15
|
-
"benchmark",
|
|
16
|
-
"coverage",
|
|
17
|
-
"spec",
|
|
18
|
-
"**/*.benchmark.ts",
|
|
19
|
-
"**/*.spec.ts",
|
|
20
|
-
"keys",
|
|
21
|
-
"jest.config.js"
|
|
22
|
-
]
|
|
11
|
+
"exclude": ["node_modules", "test", "lib", "benchmark", "coverage", "spec", "**/*.benchmark.ts", "**/*.spec.ts", "keys", "jest.config.js"]
|
|
23
12
|
}
|