@tsed/oidc-provider 6.102.7 → 6.102.8-rc.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/lib/cjs/package.json +3 -0
- package/lib/esm/OidcModule.js +3 -3
- package/lib/esm/decorators/grantId.js +1 -1
- package/lib/esm/decorators/index.js +9 -9
- package/lib/esm/decorators/interaction.js +1 -1
- package/lib/esm/decorators/interactions.js +3 -3
- package/lib/esm/decorators/noCache.js +1 -1
- package/lib/esm/decorators/oidcCtx.js +1 -1
- package/lib/esm/decorators/oidcSession.js +1 -1
- package/lib/esm/decorators/params.js +1 -1
- package/lib/esm/decorators/prompt.js +1 -1
- package/lib/esm/decorators/uid.js +1 -1
- package/lib/esm/domain/index.js +5 -5
- package/lib/esm/index.js +11 -11
- package/lib/esm/middlewares/OidcInteractionMiddleware.js +3 -3
- package/lib/esm/package.json +3 -0
- package/lib/esm/services/OidcInteractionContext.js +3 -3
- package/lib/esm/services/OidcInteractions.js +1 -1
- package/lib/esm/services/OidcProvider.js +4 -4
- package/package.json +15 -14
package/lib/esm/OidcModule.js
CHANGED
|
@@ -2,9 +2,9 @@ import { __decorate, __metadata } from "tslib";
|
|
|
2
2
|
import { Inject, InjectorService, PlatformApplication } from "@tsed/common";
|
|
3
3
|
import { Constant, Module } from "@tsed/di";
|
|
4
4
|
import koaMount from "koa-mount";
|
|
5
|
-
import { OidcAdapters } from "./services/OidcAdapters";
|
|
6
|
-
import { OidcJwks } from "./services/OidcJwks";
|
|
7
|
-
import { OidcProvider } from "./services/OidcProvider";
|
|
5
|
+
import { OidcAdapters } from "./services/OidcAdapters.js";
|
|
6
|
+
import { OidcJwks } from "./services/OidcJwks.js";
|
|
7
|
+
import { OidcProvider } from "./services/OidcProvider.js";
|
|
8
8
|
let OidcModule = class OidcModule {
|
|
9
9
|
async $onInit() {
|
|
10
10
|
if (this.oidcProvider.hasConfiguration()) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Context } from "@tsed/common";
|
|
2
2
|
import { useDecorators } from "@tsed/core";
|
|
3
|
-
import { INTERACTION_GRANT_ID } from "../constants";
|
|
3
|
+
import { INTERACTION_GRANT_ID } from "../constants.js";
|
|
4
4
|
export function GrantId() {
|
|
5
5
|
return useDecorators(Context(INTERACTION_GRANT_ID));
|
|
6
6
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from "./interactions";
|
|
2
|
-
export * from "./interaction";
|
|
3
|
-
export * from "./noCache";
|
|
4
|
-
export * from "./oidcCtx";
|
|
5
|
-
export * from "./oidcSession";
|
|
6
|
-
export * from "./params";
|
|
7
|
-
export * from "./prompt";
|
|
8
|
-
export * from "./uid";
|
|
9
|
-
export * from "./grantId";
|
|
1
|
+
export * from "./interactions.js";
|
|
2
|
+
export * from "./interaction.js";
|
|
3
|
+
export * from "./noCache.js";
|
|
4
|
+
export * from "./oidcCtx.js";
|
|
5
|
+
export * from "./oidcSession.js";
|
|
6
|
+
export * from "./params.js";
|
|
7
|
+
export * from "./prompt.js";
|
|
8
|
+
export * from "./uid.js";
|
|
9
|
+
export * from "./grantId.js";
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Controller, UseBefore } from "@tsed/common";
|
|
2
2
|
import { useDecorators } from "@tsed/core";
|
|
3
|
-
import { INTERACTIONS } from "../constants";
|
|
4
|
-
import { OidcInteractionMiddleware } from "../middlewares/OidcInteractionMiddleware";
|
|
5
|
-
import { NoCache } from "./noCache";
|
|
3
|
+
import { INTERACTIONS } from "../constants.js";
|
|
4
|
+
import { OidcInteractionMiddleware } from "../middlewares/OidcInteractionMiddleware.js";
|
|
5
|
+
import { NoCache } from "./noCache.js";
|
|
6
6
|
export function Interactions(options) {
|
|
7
7
|
const { path } = options;
|
|
8
8
|
return useDecorators(Controller({ path, children: options.children, subType: INTERACTIONS }), NoCache(), UseBefore(OidcInteractionMiddleware));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseBefore } from "@tsed/common";
|
|
2
|
-
import { OidcNoCacheMiddleware } from "../middlewares/OidcNoCacheMiddleware";
|
|
2
|
+
import { OidcNoCacheMiddleware } from "../middlewares/OidcNoCacheMiddleware.js";
|
|
3
3
|
export function NoCache() {
|
|
4
4
|
return UseBefore(OidcNoCacheMiddleware);
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Context } from "@tsed/common";
|
|
2
2
|
import { useDecorators } from "@tsed/core";
|
|
3
|
-
import { INTERACTION_CONTEXT } from "../constants";
|
|
3
|
+
import { INTERACTION_CONTEXT } from "../constants.js";
|
|
4
4
|
export function OidcCtx() {
|
|
5
5
|
return useDecorators(Context(INTERACTION_CONTEXT));
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Context } from "@tsed/common";
|
|
2
2
|
import { useDecorators } from "@tsed/core";
|
|
3
|
-
import { INTERACTION_PARAMS } from "../constants";
|
|
3
|
+
import { INTERACTION_PARAMS } from "../constants.js";
|
|
4
4
|
export function Params(expression) {
|
|
5
5
|
return useDecorators(Context([INTERACTION_PARAMS, expression].filter(Boolean).join(".")));
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Context } from "@tsed/common";
|
|
2
2
|
import { useDecorators } from "@tsed/core";
|
|
3
|
-
import { INTERACTION_PROMPT } from "../constants";
|
|
3
|
+
import { INTERACTION_PROMPT } from "../constants.js";
|
|
4
4
|
export function Prompt() {
|
|
5
5
|
return useDecorators(Context(INTERACTION_PROMPT));
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Context } from "@tsed/common";
|
|
2
2
|
import { useDecorators } from "@tsed/core";
|
|
3
|
-
import { INTERACTION_UID } from "../constants";
|
|
3
|
+
import { INTERACTION_UID } from "../constants.js";
|
|
4
4
|
export function Uid() {
|
|
5
5
|
return useDecorators(Context(INTERACTION_UID));
|
|
6
6
|
}
|
package/lib/esm/domain/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from "./OidcAccountsMethods";
|
|
2
|
-
export * from "./OidcInteraction";
|
|
3
|
-
export * from "./OidcInteractionMethods";
|
|
4
|
-
export * from "./OidcInteractionOptions";
|
|
5
|
-
export * from "./OidcSettings";
|
|
1
|
+
export * from "./OidcAccountsMethods.js";
|
|
2
|
+
export * from "./OidcInteraction.js";
|
|
3
|
+
export * from "./OidcInteractionMethods.js";
|
|
4
|
+
export * from "./OidcInteractionOptions.js";
|
|
5
|
+
export * from "./OidcSettings.js";
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/lib/esm/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from "./decorators";
|
|
2
|
-
export * from "./domain";
|
|
3
|
-
export * from "./middlewares/OidcInteractionMiddleware";
|
|
4
|
-
export * from "./middlewares/OidcNoCacheMiddleware";
|
|
5
|
-
export * from "./middlewares/OidcSecureMiddleware";
|
|
6
|
-
export * from "./services/OidcAdapters";
|
|
7
|
-
export * from "./services/OidcInteractions";
|
|
8
|
-
export * from "./services/OidcInteractionContext";
|
|
9
|
-
export * from "./services/OidcJwks";
|
|
10
|
-
export * from "./services/OidcProvider";
|
|
11
|
-
export * from "./OidcModule";
|
|
1
|
+
export * from "./decorators.js";
|
|
2
|
+
export * from "./domain.js";
|
|
3
|
+
export * from "./middlewares/OidcInteractionMiddleware.js";
|
|
4
|
+
export * from "./middlewares/OidcNoCacheMiddleware.js";
|
|
5
|
+
export * from "./middlewares/OidcSecureMiddleware.js";
|
|
6
|
+
export * from "./services/OidcAdapters.js";
|
|
7
|
+
export * from "./services/OidcInteractions.js";
|
|
8
|
+
export * from "./services/OidcInteractionContext.js";
|
|
9
|
+
export * from "./services/OidcJwks.js";
|
|
10
|
+
export * from "./services/OidcProvider.js";
|
|
11
|
+
export * from "./OidcModule.js";
|
|
12
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __decorate, __metadata, __param } from "tslib";
|
|
2
2
|
import { Context, Inject, InjectorService, Middleware } from "@tsed/common";
|
|
3
|
-
import { INTERACTION_CONTEXT, INTERACTION_DETAILS, INTERACTION_PARAMS, INTERACTION_GRANT_ID, INTERACTION_PROMPT, INTERACTION_SESSION, INTERACTION_UID } from "../constants";
|
|
4
|
-
import { OidcInteractionContext } from "../services/OidcInteractionContext";
|
|
5
|
-
import { OidcInteractions } from "../services/OidcInteractions";
|
|
3
|
+
import { INTERACTION_CONTEXT, INTERACTION_DETAILS, INTERACTION_PARAMS, INTERACTION_GRANT_ID, INTERACTION_PROMPT, INTERACTION_SESSION, INTERACTION_UID } from "../constants.js";
|
|
4
|
+
import { OidcInteractionContext } from "../services/OidcInteractionContext.js";
|
|
5
|
+
import { OidcInteractions } from "../services/OidcInteractions.js";
|
|
6
6
|
let OidcInteractionMiddleware = class OidcInteractionMiddleware {
|
|
7
7
|
async use(context) {
|
|
8
8
|
const oidcInteraction = this.injector.invoke(OidcInteractionContext, context.container);
|
|
@@ -2,9 +2,9 @@ import { __decorate, __metadata } from "tslib";
|
|
|
2
2
|
import { Constant, PlatformContext, ProviderScope, Scope } from "@tsed/common";
|
|
3
3
|
import { Env } from "@tsed/core";
|
|
4
4
|
import { Inject, Injectable } from "@tsed/di";
|
|
5
|
-
import { debug } from "../utils/debug";
|
|
6
|
-
import { OidcInteractions } from "./OidcInteractions";
|
|
7
|
-
import { OidcProvider } from "./OidcProvider";
|
|
5
|
+
import { debug } from "../utils/debug.js";
|
|
6
|
+
import { OidcInteractions } from "./OidcInteractions.js";
|
|
7
|
+
import { OidcProvider } from "./OidcProvider.js";
|
|
8
8
|
let OidcInteractionContext = class OidcInteractionContext {
|
|
9
9
|
get session() {
|
|
10
10
|
return this.raw.session;
|
|
@@ -2,7 +2,7 @@ import { __decorate, __metadata } from "tslib";
|
|
|
2
2
|
import { Constant, EndpointMetadata, PlatformHandler } from "@tsed/common";
|
|
3
3
|
import { Env } from "@tsed/core";
|
|
4
4
|
import { Inject, Injectable, InjectorService } from "@tsed/di";
|
|
5
|
-
import { INTERACTION, INTERACTION_OPTIONS, INTERACTIONS } from "../constants";
|
|
5
|
+
import { INTERACTION, INTERACTION_OPTIONS, INTERACTIONS } from "../constants.js";
|
|
6
6
|
let OidcInteractions = class OidcInteractions {
|
|
7
7
|
constructor() {
|
|
8
8
|
this.interactions = new Map();
|
|
@@ -2,10 +2,10 @@ import { __decorate, __metadata } from "tslib";
|
|
|
2
2
|
import { Env, setValue } from "@tsed/core";
|
|
3
3
|
import { Constant, Inject, Injectable, InjectorService } from "@tsed/di";
|
|
4
4
|
import { Provider as OIDCProvider, interactionPolicy } from "oidc-provider";
|
|
5
|
-
import { INTERACTIONS } from "../constants";
|
|
6
|
-
import { OidcAdapters } from "./OidcAdapters";
|
|
7
|
-
import { OidcInteractions } from "./OidcInteractions";
|
|
8
|
-
import { OidcJwks } from "./OidcJwks";
|
|
5
|
+
import { INTERACTIONS } from "../constants.js";
|
|
6
|
+
import { OidcAdapters } from "./OidcAdapters.js";
|
|
7
|
+
import { OidcInteractions } from "./OidcInteractions.js";
|
|
8
|
+
import { OidcJwks } from "./OidcJwks.js";
|
|
9
9
|
import { PlatformApplication } from "@tsed/common";
|
|
10
10
|
let OidcProvider = class OidcProvider {
|
|
11
11
|
hasConfiguration() {
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/oidc-provider",
|
|
3
|
-
"version": "6.102.
|
|
3
|
+
"version": "6.102.8-rc.1",
|
|
4
4
|
"description": "OIDC provider package for Ts.ED framework",
|
|
5
5
|
"private": false,
|
|
6
6
|
"source": "./src/index.ts",
|
|
7
7
|
"main": "./lib/cjs/index.js",
|
|
8
|
+
"module": "./lib/esm/index.js",
|
|
8
9
|
"typings": "./lib/types/index.d.ts",
|
|
9
10
|
"exports": {
|
|
10
11
|
"types": "./lib/types/index.d.ts",
|
|
@@ -20,7 +21,7 @@
|
|
|
20
21
|
"test": "cross-env NODE_ENV=test nyc mocha"
|
|
21
22
|
},
|
|
22
23
|
"dependencies": {
|
|
23
|
-
"@tsed/adapters": "6.102.
|
|
24
|
+
"@tsed/adapters": "6.102.8-rc.1",
|
|
24
25
|
"express-urlrewrite": "^1.4.0",
|
|
25
26
|
"jose2": "npm:jose@^2.0.4",
|
|
26
27
|
"koa-mount": "^4.0.0",
|
|
@@ -30,31 +31,31 @@
|
|
|
30
31
|
"uuid": "8.3.2"
|
|
31
32
|
},
|
|
32
33
|
"devDependencies": {
|
|
33
|
-
"@tsed/common": "6.102.
|
|
34
|
-
"@tsed/core": "6.102.
|
|
35
|
-
"@tsed/di": "6.102.
|
|
36
|
-
"@tsed/exceptions": "6.102.
|
|
34
|
+
"@tsed/common": "6.102.8-rc.1",
|
|
35
|
+
"@tsed/core": "6.102.8-rc.1",
|
|
36
|
+
"@tsed/di": "6.102.8-rc.1",
|
|
37
|
+
"@tsed/exceptions": "6.102.8-rc.1",
|
|
37
38
|
"@types/lowdb": "1.0.9",
|
|
38
39
|
"@types/oidc-provider": "^7.1.1",
|
|
39
40
|
"@types/uuid": "8.3.0",
|
|
40
41
|
"oidc-provider": "7.10.1"
|
|
41
42
|
},
|
|
42
43
|
"peerDependencies": {
|
|
43
|
-
"@tsed/common": "^6.102.
|
|
44
|
-
"@tsed/core": "^6.102.
|
|
45
|
-
"@tsed/di": "^6.102.
|
|
46
|
-
"@tsed/exceptions": "^6.102.
|
|
47
|
-
"@tsed/json-mapper": "^6.102.
|
|
44
|
+
"@tsed/common": "^6.102.8-rc.1",
|
|
45
|
+
"@tsed/core": "^6.102.8-rc.1",
|
|
46
|
+
"@tsed/di": "^6.102.8-rc.1",
|
|
47
|
+
"@tsed/exceptions": "^6.102.8-rc.1",
|
|
48
|
+
"@tsed/json-mapper": "^6.102.8-rc.1",
|
|
48
49
|
"@tsed/logger": ">=6.0.2",
|
|
49
|
-
"@tsed/openspec": "^6.102.
|
|
50
|
-
"@tsed/schema": "^6.102.
|
|
50
|
+
"@tsed/openspec": "^6.102.8-rc.1",
|
|
51
|
+
"@tsed/schema": "^6.102.8-rc.1",
|
|
51
52
|
"oidc-provider": ">=7.3.0"
|
|
52
53
|
},
|
|
53
54
|
"repository": "https://github.com/tsedio/tsed",
|
|
54
55
|
"bugs": {
|
|
55
56
|
"url": "https://github.com/tsedio/tsed/issues"
|
|
56
57
|
},
|
|
57
|
-
"homepage": "https://github.com/tsedio/tsed/tree/
|
|
58
|
+
"homepage": "https://github.com/tsedio/tsed/tree/rc/packages/security/oidc-provider",
|
|
58
59
|
"author": "Romain Lenzotti",
|
|
59
60
|
"license": "MIT"
|
|
60
61
|
}
|