@tsed/oidc-provider 8.4.3 → 8.4.5
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/esm/middlewares/OidcSecureMiddleware.js +1 -1
- package/lib/esm/middlewares/OidcSecureMiddleware.js.map +1 -1
- package/lib/esm/services/OidcJwks.js +1 -1
- package/lib/esm/services/OidcJwks.js.map +1 -1
- package/lib/esm/utils/debug.js +2 -2
- package/lib/esm/utils/debug.js.map +1 -1
- package/package.json +15 -15
- package/src/middlewares/OidcSecureMiddleware.ts +2 -1
- package/src/services/OidcJwks.ts +2 -1
- package/src/utils/debug.ts +3 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __decorate, __metadata, __param } from "tslib";
|
|
2
|
+
import url from "node:url";
|
|
2
3
|
import { BadRequest } from "@tsed/exceptions";
|
|
3
4
|
import { Middleware } from "@tsed/platform-middlewares";
|
|
4
5
|
import { Context } from "@tsed/platform-params";
|
|
5
|
-
import url from "url";
|
|
6
6
|
let OidcSecureMiddleware = class OidcSecureMiddleware {
|
|
7
7
|
use(ctx) {
|
|
8
8
|
const req = ctx.request;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OidcSecureMiddleware.js","sourceRoot":"","sources":["../../../src/middlewares/OidcSecureMiddleware.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAC,UAAU,EAAoB,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAC,OAAO,EAAC,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"OidcSecureMiddleware.js","sourceRoot":"","sources":["../../../src/middlewares/OidcSecureMiddleware.ts"],"names":[],"mappings":";AAAA,OAAO,GAAG,MAAM,UAAU,CAAC;AAE3B,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAC,UAAU,EAAoB,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAC,OAAO,EAAC,MAAM,uBAAuB,CAAC;AAGvC,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,GAAG,CAAY,GAAY;QACzB,MAAM,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC;QAExB,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC;YAChB,IAAI,GAAG,CAAC,MAAM,KAAK,KAAK,IAAI,GAAG,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC;gBAClD,GAAG,CAAC,QAAQ,CAAC,QAAQ,CACnB,GAAG,EACH,GAAG,CAAC,MAAM,CAAC;oBACT,QAAQ,EAAE,OAAO;oBACjB,IAAI,EAAE,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC;oBACrB,QAAQ,EAAE,GAAG,CAAC,GAAG;iBAClB,CAAC,CACH,CAAC;YACJ,CAAC;iBAAM,CAAC;gBACN,MAAM,IAAI,UAAU,CAAC,gBAAgB,EAAE;oBACrC,KAAK,EAAE,iBAAiB;oBACxB,iBAAiB,EAAE,wCAAwC;iBAC5D,CAAC,CAAC;YACL,CAAC;QACH,CAAC;IACH,CAAC;CACF,CAAA;AArBC;IAAK,WAAA,OAAO,EAAE,CAAA;;;;+CAoBb;AArBU,oBAAoB;IADhC,UAAU,EAAE;GACA,oBAAoB,CAsBhC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
+
import { join } from "node:path";
|
|
2
3
|
import { constant, Injectable } from "@tsed/di";
|
|
3
4
|
import { getJwks } from "@tsed/jwks";
|
|
4
|
-
import { join } from "path";
|
|
5
5
|
let OidcJwks = class OidcJwks {
|
|
6
6
|
constructor() {
|
|
7
7
|
this.jwksPath = constant("oidc.jwksPath", join(process.cwd(), "keys", "jwks.json"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OidcJwks.js","sourceRoot":"","sources":["../../../src/services/OidcJwks.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"OidcJwks.js","sourceRoot":"","sources":["../../../src/services/OidcJwks.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAE/B,OAAO,EAAC,QAAQ,EAAE,UAAU,EAAC,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAC,OAAO,EAAoB,MAAM,YAAY,CAAC;AAG/C,IAAM,QAAQ,GAAd,MAAM,QAAQ;IAAd;QACE,aAAQ,GAAW,QAAQ,CAAC,eAAe,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC;QACvF,iBAAY,GAAyB,QAAQ,CAAC,mBAAmB,CAAC,CAAC;IAa5E,CAAC;IAVC,OAAO;QACL,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;IACxB,CAAC;IAED,OAAO;QACL,OAAO,OAAO,CAAC;YACb,IAAI,EAAE,IAAI,CAAC,QAAQ;YACnB,YAAY,EAAE,IAAI,CAAC,YAAY;SAChC,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAfY,QAAQ;IADpB,UAAU,EAAE;GACA,QAAQ,CAepB"}
|
package/lib/esm/utils/debug.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import qs from "node:querystring";
|
|
2
|
+
import { inspect } from "node:util";
|
|
1
3
|
import { isEmpty } from "@tsed/core";
|
|
2
|
-
import qs from "querystring";
|
|
3
|
-
import { inspect } from "util";
|
|
4
4
|
const keys = new Set();
|
|
5
5
|
function serialize(obj) {
|
|
6
6
|
return Object.entries(obj).reduce((acc, [key, value]) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug.js","sourceRoot":"","sources":["../../../src/utils/debug.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"debug.js","sourceRoot":"","sources":["../../../src/utils/debug.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAElC,OAAO,EAAC,OAAO,EAAC,MAAM,YAAY,CAAC;AAEnC,MAAM,IAAI,GAAG,IAAI,GAAG,EAAE,CAAC;AAEvB,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,GAAQ,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QAC3D,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAEd,IAAI,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YACnB,OAAO,GAAG,CAAC;QACb,CAAC;QAED,GAAG,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,KAAK,EAAE,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC,CAAC;QACzC,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC;AAED,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,GAAQ,EAAE,EAAE,CAChC,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE;IAC1C,kBAAkB,CAAC,KAAK;QACtB,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,KAAK,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC;IAC/D,CAAC;CACF,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@tsed/oidc-provider",
|
|
3
3
|
"description": "OIDC provider package for Ts.ED framework",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "8.4.
|
|
5
|
+
"version": "8.4.5",
|
|
6
6
|
"source": "./src/index.ts",
|
|
7
7
|
"main": "./lib/esm/index.js",
|
|
8
8
|
"module": "./lib/esm/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"test:ci": "vitest run --coverage.thresholds.autoUpdate=true"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@tsed/adapters": "8.4.
|
|
27
|
+
"@tsed/adapters": "8.4.5",
|
|
28
28
|
"express-urlrewrite": "^2.0.3",
|
|
29
29
|
"jose2": "npm:jose@^2.0.4",
|
|
30
30
|
"koa-mount": "^4.0.0",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"uuid": "^10.0.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@tsed/barrels": "8.4.
|
|
38
|
-
"@tsed/core": "8.4.
|
|
39
|
-
"@tsed/di": "8.4.
|
|
40
|
-
"@tsed/exceptions": "8.4.
|
|
41
|
-
"@tsed/jwks": "8.4.
|
|
42
|
-
"@tsed/platform-http": "8.4.
|
|
43
|
-
"@tsed/typescript": "8.4.
|
|
37
|
+
"@tsed/barrels": "8.4.5",
|
|
38
|
+
"@tsed/core": "8.4.5",
|
|
39
|
+
"@tsed/di": "8.4.5",
|
|
40
|
+
"@tsed/exceptions": "8.4.5",
|
|
41
|
+
"@tsed/jwks": "8.4.5",
|
|
42
|
+
"@tsed/platform-http": "8.4.5",
|
|
43
|
+
"@tsed/typescript": "8.4.5",
|
|
44
44
|
"@types/lowdb": "1.0.15",
|
|
45
45
|
"@types/oidc-provider": "8.5.2",
|
|
46
46
|
"@types/uuid": "10.0.0",
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
"vitest": "2.1.2"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@tsed/ajv": ">=8.4.
|
|
56
|
-
"@tsed/core": ">=8.4.
|
|
57
|
-
"@tsed/di": ">=8.4.
|
|
58
|
-
"@tsed/json-mapper": ">=8.4.
|
|
59
|
-
"@tsed/platform-http": ">=8.4.
|
|
60
|
-
"@tsed/schema": ">=8.4.
|
|
55
|
+
"@tsed/ajv": ">=8.4.5",
|
|
56
|
+
"@tsed/core": ">=8.4.5",
|
|
57
|
+
"@tsed/di": ">=8.4.5",
|
|
58
|
+
"@tsed/json-mapper": ">=8.4.5",
|
|
59
|
+
"@tsed/platform-http": ">=8.4.5",
|
|
60
|
+
"@tsed/schema": ">=8.4.5",
|
|
61
61
|
"oidc-provider": ">=8.0.0"
|
|
62
62
|
},
|
|
63
63
|
"peerDependenciesMeta": {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import url from "node:url";
|
|
2
|
+
|
|
1
3
|
import {BadRequest} from "@tsed/exceptions";
|
|
2
4
|
import {Middleware, MiddlewareMethods} from "@tsed/platform-middlewares";
|
|
3
5
|
import {Context} from "@tsed/platform-params";
|
|
4
|
-
import url from "url";
|
|
5
6
|
|
|
6
7
|
@Middleware()
|
|
7
8
|
export class OidcSecureMiddleware implements MiddlewareMethods {
|
package/src/services/OidcJwks.ts
CHANGED